Working through a book which currently is walking me through building a certain program, I come across building dialog boxes. In creating a new class to associate with that dialog box, he follows up by having you call the OnInitDialog() member function to intialize the dialog, finalized by...
I am having a hard time understanding how to make sure that the #include directives are listed in the correct order as it is to my understanding.
Is there a way that daily programmers use to help sort out one needing to come before another in the header files?
I am receiving the following *warning* when compiling which references the following header file:
#include <stdafx.h>
: warning C4652: compiler option 'Generate Browser Info' inconsistent with precompiled header; current command-line option will override that defined in the precompiled...
I am going through creating some message handlers and having a problem understanding a certain situation.
To my understanding, if a base class member function is not set to "private" this it will be available and passed down to classes drived from that base class consisting of the member...
In VC6, when creating a MFC App (exe) project, what option (in the number of wizard option screens) causes the .rc file to be generated?
A projectname.rc2 file is generated, but not a projectname.rc file is generated.
I really need the communities advice here...
I have been attempting to learn VC++ for a bit now, and started on the path with the software I had (VC 6). After getting well into it, it was brought to my attention that I might want to upgrade to VC 2005 as VC6 standard was quite old. I was...
I have two questions reguarding Windows programming:
1) Under C++: Are all window programming through the means of either one of the three: API, MFC and Window Forms?
2) Being that Window Form programming uses the CLR, is there any recommendation between programming directly to the API vs. MFC?
Anyone able to recommend a "current" C++ programming news site that particularly can visit daily or regularly for news in the communicty of C++ programming?
In VC 6, I could load up a .cpp file, and then F7 to compile. If it didn't have a workspace created, it would ask if one wanted to be created which, selecting yes creates a workspace and then compiles.
However, in VC 2005 express, if I load up a .cpp (add > existing item) and and try to...
I don't know what is going on or what I possibly could have done, but some of the most common actions are not available to me though they should be, and I was hoping someone might be able to tell me what I am doing wrong:
After creating a Win32 Console application, adding a class, I switch to...
Am i correct in understanding that the only way to execute a VC++ program after compiling is ctrl + F5?
I noticied there was no longer a executing <filename> on the Build menu from VC 6, so doing some searching only produced ctrl+F5 in the book I am reading on online?
Can anyone confirm?
I have a number of questions that I was hoping I could through up here, mainly all are clarification request on understanding some principles or syntax clarifications, as opposed to created a new thread for each one:
1)Can someone explain the arguments to the function main in for a CLR program...
In learning C++ I am at a point of getting to know the debugger in VC 6 (I am switching to 2005 at the end of this project) - anyhow, I posted the below code, that if you compile (0 errors) but try to run, it crashes, giving you an opportunity to run the debugger.
Upon entering you'll receive...
I have been hammering at learning C++ and will be continuing to do so. I have some programs that I am writing as part of my learning experience.
I also had plans to learn some other languages thoroughly such as Java as I am in a position where I have been writing programs for my company any...
I am trying to find out what the statement in a C++ book that is having me create a function member in a class but is asking me to do something else that I don't quite understand. It states:
"If you used the ClassWizard to add the operator function you will need to delete the implementation as...
I was hoping someone could explain the following issue regarding the need to call a copy constructor for the base part of the class in the initialization list for the copy constructor for the derived class (NOTE: complete code at bottom)- as pointed out as:
- A problem when initializing a new...
I thought I had a grip on classes in reference to the header and executable code .cpp files. I was understanding that one held the declaration and one contained the actual code.
However, in getting into creating classes off of base classes, that I was running into errors such as:
error C2504...
New to C++ I was curious to know why when using Visual Studio 6, and when in the .cpp class definition file, I used the wizard to add a "member function".
This then created in the .h file my skeleton of the definition for this member function declaration. However, my question is, why can I...
In learning C++ I have come across Overloading operators. At first I was thinking that it was strictly because you "can" manipulate the meaning for an operator so when it is used with a class you are actually calling a member function to perform some operation.
However, I have two question...
Using C++ stating your prototype such as:
<type> functionname(type arg1, type arg2....)
My question is, if you are passing two variables one of type float and one of type int, and you want to pass them both back, what do you specify as the "return type"? Or can you not do that?
float...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.