Createing DLL project wizards

Started by jwzumwalt, June 07, 2009, 06:28:38 AM

Previous topic - Next topic

jwzumwalt

I have been experimenting with making project wizards for PelleC. I have become somewhat comfortable with the process. I can make user selectable check boxes etc, but I do not see how that information can be used to add include files or project option switches to compile instructions. Can anyone tell me whether this can be done or not?

For example I wold like the compiler include line to look similar to this...
LINKFLAGS = -subsystem:windows -machine:x86 ... opengl32.lib glu32.lib glaux.lib glut32.lib#

JohnF

#1
Quote from: jwzumwalt on June 07, 2009, 06:28:38 AM
I have been experimenting with making project wizards for PelleC. I have become somewhat comfortable with the process. I can make user selectable check boxes etc, but I do not see how that information can be used to add include files or project option switches to compile instructions. Can anyone tell me whether this can be done or not?

For example I wold like the compiler include line to look similar to this...
LINKFLAGS = -subsystem:windows -machine:x86 ... opengl32.lib glu32.lib glaux.lib glut32.lib#


I don't know if one can directly control the LINKFLAGS - don't think so.
EDIT: You can try WizSetProjectSymbol() though.

You can add include files by adding lines in the template as in a normal C file - the files one includes via RCDATA.

You use WizSetProjectType() to set the type of app and libraries can be added using the #pragma directive in the template (C files).

John

jwzumwalt

Thanks for the reply... I guess what I really want is going to require a custom text .ppj file.

JohnF

#3
I've just seen this from an example.


WizSetProjectSymbol("CCFLAGS","-W1 -Ot -Gz -Ze -Zx -Gn -Tx86-coff")


Presumably one can do the same with LINKFLAGS

Does that help?

John

jwzumwalt

Yes this is intriguing. I will play with it and see if I can set the linker line in the same way - thank you!

JohnF

#5
It's worth mentioning that the help file says -

Note! WizSetProjectType must be called before WizGetProjectSymbol can be used.


EDIT for spelling.

John