Creating a base-code template in Visual C++ 6.0
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!!!
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
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
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..
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..
yeah.. visual c++ isn''t exactly "MS Word", you cant just
type something up and save it as a template.. but the methods
mentioned thus far are what most of us use.
-eldee
;another space monkey;
[ Forced Evolution Studios ]
type something up and save it as a template.. but the methods
mentioned thus far are what most of us use.
-eldee
;another space monkey;
[ Forced Evolution Studios ]
You can create a custom appwizard, using existing code as a template (slightly tweaked). It''s not easy, but it''s not rocket science either.
Just look up "custom appwizard" in the MSDN.
Just look up "custom appwizard" in the MSDN.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement