Click here to Skip to main content
15,897,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIMAPI Problem Pin
Anorexic Tribble30-Dec-04 5:01
Anorexic Tribble30-Dec-04 5:01 
Generalwatch video Pin
Naveen30-Dec-04 4:40
Naveen30-Dec-04 4:40 
GeneralFuzzy set and c++ ! Pin
faroqtam30-Dec-04 4:39
faroqtam30-Dec-04 4:39 
GeneralA Question about CDockBar Pin
prabbit201030-Dec-04 4:21
prabbit201030-Dec-04 4:21 
GeneralProblem with printing in CRichEditView Pin
Stojan7830-Dec-04 4:02
Stojan7830-Dec-04 4:02 
GeneralWeb Services Pin
Rassul Yunussov30-Dec-04 1:14
Rassul Yunussov30-Dec-04 1:14 
GeneralPreprocessor Pasting in Resources Pin
Joel Holdsworth30-Dec-04 0:38
Joel Holdsworth30-Dec-04 0:38 
GeneralRe: Preprocessor Pasting in Resources Pin
Neville Franks30-Dec-04 1:23
Neville Franks30-Dec-04 1:23 
I use a .h for version info and then use the #defs in the Version Resource as follows:

FILEVERSION       1,_SUL_VER_MINOR,_SUL_BUILD,_SUL_RBLD
PRODUCTVERSION    1,_SUL_VER_MINOR,0,0

VALUE "FileVersion", "1." _SUL_VER_MINORS "." _SUL_USER_BUILD "." _SUL_USER_RBLD "\0"
VALUE "ProductVersion", "1." _SUL_VER_MINORS " " _SUL_BUILD_DATE "\0"


and the .h for this:

        // rem: must 0 pad to get dd/mm
#define _SUL_BUILD_DATE "16/12/2004"     // rem: "dd/mm/yyy" If this format changes so must: <A HREF=".\ED_Install.cpp#App Release Date">

#define _SUL_VER_MINOR  30
#define _SUL_VER_MINORS "30"

#define _SUL_BUILD 0
#define _SUL_USER_BUILD "0"

// These need to be 2 digits so when we go from say B1.71 to B1.80 version checks
// work correctly.  Note that "0n" aren't handled correctly, so B2.00 appears as
// 2.0 and B2.01 appears as 2.1 so don't use leading zero's. ie. Go from .00 to .10
#define _SUL_RBLD 0        //### See note above re: 2 digits except when leading 0. so 2.10 is right, 2.01 isn't. ###
#define _SUL_USER_RBLD "0"


The only hassle with this is that the VC6 Resource Editor occassionally looses the plot and the #defs in the VERSIONINFO get replaced by there literal values. I check this before each release and copy and paste the correct lines back in.

Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
GeneralRe: Preprocessor Pasting in Resources Pin
Michael Bergman30-Dec-04 10:31
Michael Bergman30-Dec-04 10:31 
GeneralRe: Preprocessor Pasting in Resources Pin
Michael Dunn30-Dec-04 6:07
sitebuilderMichael Dunn30-Dec-04 6:07 
GeneralQuestions about inheritance Pin
Anonymous30-Dec-04 0:16
Anonymous30-Dec-04 0:16 
GeneralRe: Questions about inheritance Pin
V.30-Dec-04 3:22
professionalV.30-Dec-04 3:22 
GeneralRe: Questions about inheritance Pin
Vangelis Fortounas30-Dec-04 4:07
Vangelis Fortounas30-Dec-04 4:07 
GeneralRe: Questions about inheritance Pin
Maximilien30-Dec-04 5:26
Maximilien30-Dec-04 5:26 
GeneralRe: Questions about inheritance Pin
Anonymous30-Dec-04 6:37
Anonymous30-Dec-04 6:37 
GeneralRe: Questions about inheritance Pin
Maximilien30-Dec-04 5:22
Maximilien30-Dec-04 5:22 
GeneralGettting Toolbar from CWnd* Pin
Member 24341329-Dec-04 23:18
Member 24341329-Dec-04 23:18 
GeneralRe: Gettting Toolbar from CWnd* Pin
Neville Franks30-Dec-04 1:43
Neville Franks30-Dec-04 1:43 
GeneralInconsistency behaviour of APIs - Help me Pin
MaharajM29-Dec-04 23:07
MaharajM29-Dec-04 23:07 
GeneralRe: Inconsistency behaviour of APIs - Help me Pin
David Crow30-Dec-04 3:06
David Crow30-Dec-04 3:06 
Generalsending midi thru usb!!!!!anyone plz help!!!! Pin
namaskaaram29-Dec-04 21:10
namaskaaram29-Dec-04 21:10 
Questionimporting third party library? Pin
Maverick29-Dec-04 20:31
Maverick29-Dec-04 20:31 
AnswerRe: importing third party library? Pin
Maverick29-Dec-04 21:01
Maverick29-Dec-04 21:01 
GeneralWindows service Pin
hou_12629-Dec-04 18:53
hou_12629-Dec-04 18:53 
GeneralRe: Windows service Pin
Joel Holdsworth30-Dec-04 1:50
Joel Holdsworth30-Dec-04 1:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.