|
From: <co...@ps...> - 2003-10-31 07:29:14
|
----- Original Message ----- From: "Paul Surgeon" <su...@po...> To: <dev...@li...> Sent: Thursday, October 30, 2003 8:50 PM Subject: [Dev-C++] Version info > Is there anyway to include the version info (in the project options) into my > code at compile time? > > i.e. > I want my application's title bar to contain the major,minor and build > number. > Are there any special preprocessor directives that I can use? > You should include file <projectname>_private.h There are defined (#define) consts about major, minor and build number for example: #define VER_STRING "0.0.0.37" #define VER_MAJOR 0 #define VER_MINOR 0 #define VER_RELEASE 0 #define VER_BUILD 37 > It's a pain having to copy it every time I do a build and it's too easy to > forget > to update. > > Thanks > Paul Greetings Collins > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |