Archived

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

Yerrel

Creating a base-code template in Visual C++ 6.0

Recommended Posts

Hi fellow programmers, Does someone know how to create an code-template in Visual C++ v6.0? For eample: I want to be able to start a new project and then just click on my template, then i don''t have to type the whole code again, like when programming a window-application then i do not have to type in the whole basic-code to initialize the window-code i.e. creating the class, openeing the class structure, creating the window and the event handler. What i want is: Just click on new project and then click on like: Window_Base_Code Please help me!!!

Share this post


Link to post
Share on other sites
Hi,

What I do take a few minutes rather a single click, but it may be applied to any IDE I think :

1. create your template with your minimal code
2. Store it somewhere

3. Now, for a new project, create an empty one, and change the settings as what you need (compiler option, libraries, etc)
4. Copy/paste your template inside the project directory
5. Add them to the project, et voila !

Note : to skip specifying libraries, you might put some #pragma-like directive to indicate which libraries to use. Since I discovered his trick in this forum, all I need to change is the location of the exe file and check RTTI.

----
David Sporn AKA Sporniket

Share this post


Link to post
Share on other sites
Hi,

That''s is exactly how i work.
I want to just click and go!, that is why the template!

So your solution is not the one i''m looking for.

But thanks for your replay..

Share this post


Link to post
Share on other sites