Custom AppWizards

Custom AppWizards

Author

Message

Ranj#1 / 6

Custom AppWizards

Hi,

I am writing a custom MFC appwizard to automate the generation of boiler-plate code for OpenGL. Its working fine except that I am not able to programmatically specify that the OpenGL libraries must be linked with in all the configurations of the new project. I did a little searching and found out that it can be done by overriding the "CustomizeProject" method (Technical Note no. Q173483). Unfortunately, however, I am not able to do this (the call to "IConfigurations::Item" fails saying the parameter passed is incorrect).

Does anybody know of any sample code that deals with the generation of custom appwizards in VC++? Thanks for any help :).

-- Ranju. V --

Thu, 04 Dec 2003 20:54:27 GMT

R. Bukowsk#2 / 6

Custom AppWizards

I am not a AppWizard expert, but it is probably possible to add to user code this line #pragma comment(lib, "mylib.lib")

Radek

Quote:

> Hi,

> I am writing a custom MFC appwizard to automate the generation of > boiler-plate code for OpenGL. Its working fine except that I am not able to > programmatically specify that the OpenGL libraries must be linked with in > all the configurations of the new project. I did a little searching and > found out that it can be done by overriding the "CustomizeProject" method > (Technical Note no. Q173483). Unfortunately, however, I am not able to do > this (the call to "IConfigurations::Item" fails saying the parameter passed > is incorrect).

> Does anybody know of any sample code that deals with the generation of > custom appwizards in VC++? > Thanks for any help :).

> -- > Ranju. V > --

Thu, 04 Dec 2003 22:02:22 GMT

Ranj#3 / 6

Custom AppWizards

| I am not a AppWizard expert, but it is probably possible to add to user code | this line | #pragma comment(lib, "mylib.lib") | | Radek

Hmm. Thanks Mr. Bukowski. Never thought about that! Still, I wonder how its done using the Developer Studio object model.

Thanks again :).

-- Ranju. V http://www.geocities.com/cool_ranju/ --

Fri, 05 Dec 2003 13:31:23 GMT

Dave Lacy Kuster#4 / 6

Custom AppWizards

Quote:

> Hi, > Does anybody know of any sample code that deals with the generation of > custom appwizards in VC++?

Ranju,

Try the following code in your CMyAppWiz::CustomizeProject function (which should be defined by the app wizard wizard: