Type: Posts; User: GCDEF
Search took 0.33 seconds.
March 5th, 2014, 10:24 AM
I'm not sure what point you're trying to make. There are lots of differences, including the first app is trying to use single variables as arrays and the second one isn't.
March 5th, 2014, 10:05 AM
You appear to be trying to use name, type and year as arrays, although they aren't declared that way.
That image is really hard to read because of its size. Your debugger should be able to tell...
March 4th, 2014, 04:41 PM
As 2kaud said, try the debugger. I'm having trouble making sense of your code. I don't see what you're first loop is trying to accomplish. In setCurrentContract, you're storing the address of a...
March 3rd, 2014, 08:05 AM
Nothing to do with your question, but those aren't nested if statements.
February 27th, 2014, 07:39 PM
How about InitialUpdateFrame. It even receives a CDocument pointer as an argument.
February 27th, 2014, 06:41 PM
Perhaps your document should call a function in your CMainFrame class and pass a pointer to itself when it's created.
February 27th, 2014, 04:15 PM
It's in the Visual C++ FAQ
February 27th, 2014, 11:31 AM
Another thing, in most cases functions don't want to return references. That applies here.
February 27th, 2014, 09:01 AM
In C++, a struct and a class are for all intents and purposes, the same thing. If you want to use a class, it would likely have 40 members, some of which may be objects.
February 26th, 2014, 07:00 PM
That doesn't mean all your functions need to be virtual. Only make them virtual if you think their behavior will change in derived classes. GetFirstName would be the same regardless of the employee...
February 26th, 2014, 06:36 PM
The only slight niggle that jumps out at me right away is that you've made all your functions virtual. In the case of getting and setting the names and probably the salary, that doesn't seem...
February 26th, 2014, 08:04 AM
Your question si kind of vague as we don't know what you've done and what you need. Sounds like a typical MFC CDialog based app, or perhaps CPropertyPage and CPropertySheets to give you multiple...
February 21st, 2014, 09:42 PM
That looks like the status bar of a CFrameWnd, not a dialog.
February 21st, 2014, 11:29 AM
What happens if you call OnSaveDocument?
February 19th, 2014, 02:47 PM
I think it's probably safe to assume that after 13 years, the OP has moved on.
February 16th, 2014, 06:04 PM
What type of project did you create?
February 16th, 2014, 08:16 AM
I'm a little confused by your question. If you want unmanaged code, why not just use C++? The new Visual Studio is much better than VC6
February 13th, 2014, 02:45 PM
That would be easy enough to test wouldn't it?
February 13th, 2014, 12:27 PM
When you need help, you post a question here, preferably using compete words and well-formed sentences.
You may want to read up on how the forum works....
February 12th, 2014, 07:36 PM
You can't. Typically you'd create a member variable in Dialog, such as
Then your code would look like
dlg.m_pDoc = pDoc;
February 10th, 2014, 01:00 PM
Why don't you think about it a bit. Come up with some points that don't form a straight line. Use a pencil and paper if you have to.
February 10th, 2014, 08:40 AM
Hard to say without knowing what you're doing, but perhaps you need a database.
February 9th, 2014, 03:10 PM
Then you should probably get started on it. If you get stuck somewhere, let us know how we can help.
February 8th, 2014, 06:42 PM
Windows will free up any memory and system resources your program is using when it terminates. On the other hand, it's good practice to do it yourself anyway. You should delete any memory you...
February 8th, 2014, 10:16 AM
I don't see anything here that stops dealing at 52
for (i = 1; i <= n; i++)
Click Here to Expand Forum to Full Width