Archived

This topic is now archived and is closed to further replies.

Newbie Question - need help...

This topic is 6079 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

quote:
Original post by IOStream

Real quick and simple (just starting also...): how do you create a .h file?


From your IDE you select File/New, select header file. If your IDE doesn''t have an option to create a header, you simply create a new blank file and save it with the ".h" extension. In your header file, you only put function declaration and not complete functions. That''s why you also create a ".cpp" file that will hold the implementations of the function in your header file. You add the ".cpp" file to the project and you include the ".h" in the main ".cpp" file( ie: the one that has the WinMain or Main ).



"And that''s the bottom line cause I said so!"

Cyberdrek
Headhunter Soft
A division of DLC Multimedia

Resist Windows XP''s Invasive Production Activation Technology!

Share this post


Link to post
Share on other sites
just out of curiosity: is there any reason why you are using Dev-C++ as your IDE/Compiler and MSVC as a resource editor?

Share this post


Link to post
Share on other sites
Hah, I knew that was going to come up: its just I am more familiar with Dev C++ than VC++ - I just like Dev better I guess. I relatively use both at different times.

Share this post


Link to post
Share on other sites