The .h file traditionally holds declarations and the .cpp file the definitions. The #include inserts the human readable ASCII code that is the .h file, right there at the top before compiling. The main purpose of the .h file was to gather together all the declarations (more even than you need) rather than listing all that are needed at the top of every .cpp file. (This also eliminates the need to go around changing every declaration every time you make a change.)
But in the case of Windows Programming (using Visual C++ Express) why is all the code in the form1.h and the .cpp file that includes it is just a stub?
walter clark
0
Light Poster
Recommended Answers
Jump to PostThe .h file traditionally holds declarations and the .cpp file the definitions. The #include inserts the human readable ASCII code that is the .h file, right there at the top before compiling. The main purpose of the .h file was to gather together all the declarations (more even than you …
Jump to PostSorry, I don't use VC++, i prefer Code::Blocks; but I'm guessing that Form1.h has a bunch of extra declarations that are defined in separate .CPP files that you mustn't get to see, maybe, or maybe not
All 8 Replies
athlon32
56
Junior Poster in Training
walter clark
0
Light Poster
athlon32
56
Junior Poster in Training
walter clark
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
walter clark
0
Light Poster
siddhant3s
1,429
Practically a Posting Shark
walter clark
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.