Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to revert SetCheckBox style ? Pin
Richard MacCutchan28-Mar-11 22:32
mveRichard MacCutchan28-Mar-11 22:32 
GeneralRe: How to revert SetCheckBox style ? Pin
_Flaviu29-Mar-11 5:03
_Flaviu29-Mar-11 5:03 
GeneralRe: How to revert SetCheckBox style ? Pin
Richard MacCutchan29-Mar-11 5:36
mveRichard MacCutchan29-Mar-11 5:36 
GeneralRe: How to revert SetCheckBox style ? Pin
_Flaviu29-Mar-11 20:52
_Flaviu29-Mar-11 20:52 
QuestionCapture keyboard event in a dialog dll Pin
Y K Kishore Kumar28-Mar-11 20:27
Y K Kishore Kumar28-Mar-11 20:27 
AnswerRe: Capture keyboard event in a dialog dll Pin
Selvam R29-Mar-11 1:49
professionalSelvam R29-Mar-11 1:49 
QuestionIs any way to draw Background Image? Pin
002comp28-Mar-11 19:47
002comp28-Mar-11 19:47 
AnswerRe: Is any way to draw Background Image? Pin
Nitheesh George28-Mar-11 20:30
Nitheesh George28-Mar-11 20:30 
AnswerRe: Is any way to draw Background Image? Pin
Niklas L28-Mar-11 20:57
Niklas L28-Mar-11 20:57 
AnswerRe: Is any way to draw Background Image? Pin
Hans Dietrich28-Mar-11 22:46
mentorHans Dietrich28-Mar-11 22:46 
GeneralRe: Is any way to draw Background Image? Pin
002comp29-Mar-11 2:32
002comp29-Mar-11 2:32 
QuestionError message running exe Pin
Cyclone_S28-Mar-11 13:55
Cyclone_S28-Mar-11 13:55 
AnswerRe: Error message running exe Pin
Luc Pattyn28-Mar-11 14:05
sitebuilderLuc Pattyn28-Mar-11 14:05 
GeneralRe: Error message running exe [modified] Pin
Cyclone_S28-Mar-11 14:13
Cyclone_S28-Mar-11 14:13 
AnswerRe: Error message running exe Pin
Luc Pattyn28-Mar-11 14:37
sitebuilderLuc Pattyn28-Mar-11 14:37 
AnswerRe: Error message running exe Pin
Albert Holguin28-Mar-11 15:36
professionalAlbert Holguin28-Mar-11 15:36 
AnswerRe: Error message running exe Pin
Hans Dietrich28-Mar-11 16:25
mentorHans Dietrich28-Mar-11 16:25 
GeneralRe: Error message running exe Pin
Albert Holguin28-Mar-11 17:45
professionalAlbert Holguin28-Mar-11 17:45 
AnswerRe: Error message running exe Pin
Nitheesh George28-Mar-11 20:27
Nitheesh George28-Mar-11 20:27 
GeneralRe: Error message running exe Pin
Cyclone_S29-Mar-11 14:02
Cyclone_S29-Mar-11 14:02 
AnswerRe: Error message running exe Pin
malaugh31-Mar-11 13:05
malaugh31-Mar-11 13:05 
QuestionPreprocessor directives - resources Pin
bob1697228-Mar-11 5:36
bob1697228-Mar-11 5:36 
AnswerRe: Preprocessor directives - resources Pin
Richard MacCutchan28-Mar-11 5:58
mveRichard MacCutchan28-Mar-11 5:58 
GeneralRe: Preprocessor directives - resources Pin
bob1697228-Mar-11 7:45
bob1697228-Mar-11 7:45 
GeneralRe: Preprocessor directives - resources Pin
bob1697228-Mar-11 8:11
bob1697228-Mar-11 8:11 
Ah crud. I spoke too soon. (I had only compiled it and did not try to run it when I replied earlier)

I removed those two string resources, IDR_MAINFRAME and AFX_IDS_APP_TITLE, from the .rc file and put them in the .rc2 file.

If I simply place them in there, in a STRINGTABLE, the application works correctly (has the correct title and such).
However, once I try to put a preprocessor directive in there, it compiles but the values will be incorrect sometimes depending on which value is in the if branch and the else branch.

After some experimentation, it appears that the last string assigment wins. I'm guessing that means it is ignoring the preprocessor directives or my symbol is not defined yet. I defined the symbol way up toward the top in my stdafx.h file but I'm guessing this isn't early enough?

You don't happen to remember where you defined your symbol when you had the need to do something like this?
I apologize for the extra question.

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.