Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

John Oliver

@John Oliver
About
Posts
58
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CSplitterWnd inside another
    J John Oliver

    Worked this one out. I added a new class derived from CFrameWnd and put that inside the initial SplitterWindow. Then I had a second splitter inside the the CFrameWnd.

    C / C++ / MFC c++ visual-studio question

  • CSplitterWnd inside another
    J John Oliver

    I want to create an app with three CView derived classes similar to the default Visual C++ IDE ( I don't need complicated things like MDI's or tabbed controls or docking just yet). Is is necessary to create a static CSplitterWnd within another and can anybody give me any starters? Thanks, John

    C / C++ / MFC c++ visual-studio question

  • batch file for setting env variables
    J John Oliver

    Thanks very much David, John

    C / C++ / MFC c++ tools question workspace

  • operator- in Date Class
    J John Oliver

    Hello, Think it goes something like this, but you should check on web ... if year is divisible by 4 then ....if year is not divisible by 100 then .........it's a leap year ....else .........if year is divisible by 400 then ...............it's a leap year .........endif ....endif endif John

    C / C++ / MFC help question

  • operator- in Date Class
    J John Oliver

    Hello, This mightn't be exactly what your asking but you should make the '-' operator a 'friend' rather than a class member. It means you can use it like the built-in subtraction operator instead of call a method. See http://guinness.cs.stevens-tech.edu/~asatya/courses/cs765IT/C++\_overview/lect10\_1.pdf John

    C / C++ / MFC help question

  • Any idea on this simple application?
    J John Oliver

    Create an MDI project and instead of drawing your own table, try Codeproject's own MFCGrid in one of the views. It's quite easy to use IMO. John

    C / C++ / MFC question

  • batch file for setting env variables
    J John Oliver

    Hello, I'm working at a machine where where the VC++ batch file for setting the PATH environment variables isn't available and I don't have access to the CD today. Can anybody remind me exactly what variables are set? Cheers, John p.s. or even just paste the script would be brilliant!

    C / C++ / MFC c++ tools question workspace

  • OnNotify and the MFCGrid
    J John Oliver

    OOPs, I didn't realise that the third parameter was the resource ID, I thought it was some combination of default flags. Thanks very much!

    C / C++ / MFC css wpf wcf

  • OnNotify and the MFCGrid
    J John Oliver

    Hello, I'm using the MFCGrid and I want my code to respond to the user editing a cell. It's a dialog based application. Looking at the demo app, it's looks like I should create the following mapping: ON_NOTIFY(GVN_ENDLABELEDIT, IDC_GRID, OnGridEndEdit) However, I am creating the Grid control dynamically in the code using m_pGridCtrl->Create(rect, this, 100); instead of binding it to a Custom Control on the dialog, therefore I don't have the equivelent of IDC_GRID. Is there another way to bind the WM_NOTIFY message to a instantiated variable of the control. Thanks, John

    C / C++ / MFC css wpf wcf

  • Source Files going missing in VC++ IDE
    J John Oliver

    Thanks! That is scary. Could be it, although I've been using the win2000/Norton Antivirus/Visual C++ combo for 3 years now. But I will shutit down now.

    C / C++ / MFC c++ visual-studio help question

  • Source Files going missing in VC++ IDE
    J John Oliver

    Hello, I'd appreciate any help. Over the last two days I've been experiencing my source code files going missing, while I'm working on a project in the IDE. I'm using Visual C++ 6with SourceSafe. I don't have SourceSafe Client running, but frequently, while developing in the IDE, when I double-click on a file in the Project Explorer to open it(always an implentation file) I get 'Project file .. does not exists. Do you want to get it from Source control?' For some strange reason it's just disappeared from my hard -drive. I can restore it from SourceSafe but I've lost of the work I've done since I last checked in. I always save my files regulary. Can anybody tell me if VC++ keeps temporary copies of files while I'm working on them so I can try to restore something.

    C / C++ / MFC c++ visual-studio help question

  • Multiple SQLServer databases
    J John Oliver

    Hello, We're upgrading our application to use SQL Server, having used Access for some time and I need some insight, as I may have to redesign the tables. The application is a web based front-end for our data. In the Access version, we have a completely separate database for each Client/Project who logs on, each database had the same structure. It is easier to deal with things when they had this both physical and logical division. There is some data duplicated between the databases, and this must be manually copied, usaully when the database is first created. Is SQLServer designed to allow multiple databases to exist independently, but still allow some common data to be shared, and also allow Stored Procedures to be shared among the different but same structured databases. Perhaps we should go the way of combining everything into one database however I would really prefer to store them independently. I understand that Oracle may have something like this in the way of folders. I'd appreciate any words of wisdom. Thanks, John

    Database database sql-server oracle sysadmin announcement

  • Debugger won't startup when app crashes
    J John Oliver

    Thanks David, got the info i needed in Q103861

    C / C++ / MFC c++ visual-studio com debugging

  • Debugger won't startup when app crashes
    J John Oliver

    Could somebody tell me what string's they have in this key.... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug for 'Debugger' and 'PreVisualStudio7Debugger'. I tried to get rid of the splash screen appearing whenever VS JIT debugging starts up, as described in Wintellect article[^]but whatever I've done, the debugger won't start up at all now. I'm using VC++6 in VS6 btw Thanks,john

    C / C++ / MFC c++ visual-studio com debugging

  • Anybody a member of LiveJournal.com?
    J John Oliver

    That'll do nicely, thanks.

    The Lounge com question

  • Anybody a member of LiveJournal.com?
    J John Oliver

    Hello, I'm trying to sign up for some space @ www.livejournal.com To get a free account I need to be introduced by a 'friend'. Unfortunately none of my friends are already members. I'd appreciate it if anybody who is a member could send me an account creation code. I'm hoping to create a development journal - I'm beginning to get stressed out because I'm not organised enough. Thanks, John

    The Lounge com question

  • Who are the CP article editors?
    J John Oliver

    Just out of interest, who are the Codeproject editors and what is the criteria to become one of them?

    IT & Infrastructure question

  • Getting the width of a webbrowser frame
    J John Oliver

    Found some code on the newsgroups Here[^]

    COM html help tutorial question

  • Getting the width of a webbrowser frame
    J John Oliver

    Hello, I have a web browser control in my dialog and I want to resize the control to fit the html inside. First of all, is it actually possible to get the size of the document/top frame? There is only one frame in the document and I'm hoping to read it's height and width properties, but I've been trying to drill down to the Frame but I keep getting an error. I've checked a lot of the newsgroups and I think I'm going through the IE DOM correctly. I'd appreciate any help. Thanks, John IDispatch* spDispatch = NULL; IHTMLDocument* m_spDoc1 = NULL; IHTMLDocument2* m_spDoc2 = NULL; IHTMLFramesCollection2* m_pFrames = NULL; HRESULT hr = NULL; spDispatch = m_browser.GetDocument(); spDispatch ->QueryInterface (IID_IHTMLDocument, (void**)&m_spDoc1); m_spDoc1->QueryInterface(IID_IHTMLDocument2, (void**)&m_spDoc2); m_spDoc2->get_frames(&m_pFrames); //the following code was taken from an example //which iterates through the frames / but since my page has just one frame, frameCount returns 0 //and since it is zero based I'm presuming this is correct LONG framesCount; m_pFrames->get_length(&framesCount); for( long i=0; i <= framesCount; i++) { VARIANT varIdx; varIdx.vt=VT_UINT; VARIANT varResult; varIdx.lVal=i; VariantInit(&varResult); hr = m_pFrames ->item(&varIdx, &varResult); if (SUCCEEDED(hr)) // always fails here

    COM html help tutorial question

  • VC6 Add-in for selecting configuration
    J John Oliver

    Brilliant! Thanks. John

    C / C++ / MFC workspace
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups