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

C / C++ / MFC

 
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 
GeneralRe: Preprocessor Pasting in Resources Pin
Michael Bergman30-Dec-04 10:31
Michael Bergman30-Dec-04 10:31 
Neville Franks wrote:
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.

To correct this problem, create an external .RC file and include it in the main resource file, for example:

<br />
/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Generated from the TEXTINCLUDE 2 resource.<br />
//<br />
#include "Version.h"<br />

...
<br />
2 TEXTINCLUDE DISCARDABLE <br />
BEGIN<br />
    "#include ""Version.h""\r\n"<br />
    "\0"<br />
END<br />

...
<br />
3 TEXTINCLUDE DISCARDABLE <br />
BEGIN<br />
    "#include ""version.rc""         // version resource\r\n"<br />
    "\0"<br />
END<br />

...
<br />
/////////////////////////////////////////////////////////////////////////////<br />
//<br />
// Generated from the TEXTINCLUDE 3 resource.<br />
//<br />
#include "version.rc"         // version resource<br />

Your "version.rc" may contain a template version resouce and string table which can be shared across projects and it won't get corrupted when working with the main resource script. TEXTINCLUDE 2 and 3 give a way for including files in your resource and protecting the references from the rewriting that the resouce editor does.
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 
GeneralA question about GetDlgItem Pin
IsaacLitingjun29-Dec-04 16:20
IsaacLitingjun29-Dec-04 16:20 

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.