Click here to Skip to main content
15,925,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: memory available on drive Pin
Michael Dunn30-Dec-04 5:59
sitebuilderMichael Dunn30-Dec-04 5:59 
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 
I have want to centralize the version numbering in my software. I have a central file called version.h which looks somthing like this:
#define MAJOR_VERSION						1
#define MINOR_VERSION						01
I then want to paste these tokens into my resource file. For example I want a string table entry in my resources which when evaluated turns into "MyApp Version 1.01". I imagined that somthing like this would work:
STRINGTABLE DISCARDABLE
BEGIN
    IDS_SPLASH_HEADING      "MyApp Version " #MAJOR_VERSION "." #MINOR_VERSION
END
But it seems not to. Is there an easy way to accomplish this kind of thing? Is it possible to do it without screwing the resource editor up?

Joel Holdsworth

"Outlook not so good"
That magic 8-ball knows everything! I'll ask about Exchange Server next
GeneralRe: Preprocessor Pasting in Resources Pin
Neville Franks30-Dec-04 1:23
Neville Franks30-Dec-04 1:23 
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 

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.