Click here to Skip to main content
16,005,290 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: test Pin
Terry O'Nolley6-Aug-03 16:57
Terry O'Nolley6-Aug-03 16:57 
GeneralRe: test Pin
Ryan Binns6-Aug-03 18:47
Ryan Binns6-Aug-03 18:47 
QuestionHow to change background color on toolbar Pin
ElizabethC6-Aug-03 8:24
ElizabethC6-Aug-03 8:24 
GeneralMACROS. Pin
WREY6-Aug-03 8:12
WREY6-Aug-03 8:12 
GeneralRe: MACROS. Pin
Larry Antram6-Aug-03 8:19
Larry Antram6-Aug-03 8:19 
GeneralRe: MACROS. Pin
WREY6-Aug-03 9:02
WREY6-Aug-03 9:02 
GeneralRe: MACROS. Pin
Larry Antram6-Aug-03 9:24
Larry Antram6-Aug-03 9:24 
GeneralRe: MACROS. Pin
WREY6-Aug-03 10:19
WREY6-Aug-03 10:19 
Thanks for replying.

You posted some very good samples here, and I'll see which one will work for my situation at hand.

Actually, I have a MACRO file that I '#include' in my application. In that MACRO file is where I have (and again for purely illustrative purposes):

#define YES "1"
#define NO "0"

#define StartYourEngines "YES" // using your suggestion
==============================

In the application, I have:

#include "MACROFILE.h"

etc.

if(StartYourEngines == YES)
{
...
StartYourEngines = NO;
}
==============================

That's what I was referring to about the compiler giving the error messages (about "YES" and "NO" being undeclared identifiers).

That's what I'm trying to accomplish without resorting to cluttering up the global namespace. Ordinarily, I would use a specialized class object to do what I'm after, but I'm suffering heavily from time pressure and I'm looking for the quickest and easiest way of getting the work done. Later, I could always go back and clean things up with a better solution, but for right now, I'm doing working lunches and other meals, and surviving on the least amount of sleep as possible.

Thanks again for your suggestions.

Smile | :)

William

Fortes in fide et opere!
GeneralRe: MACROS. Pin
Larry Antram6-Aug-03 10:40
Larry Antram6-Aug-03 10:40 
GeneralRe: MACROS. Pin
Larry Antram6-Aug-03 10:53
Larry Antram6-Aug-03 10:53 
GeneralRe: MACROS. Pin
WREY6-Aug-03 12:01
WREY6-Aug-03 12:01 
GeneralProblem with Passing ofstream to DLL Pin
DionChen6-Aug-03 8:04
DionChen6-Aug-03 8:04 
QuestionHow to use SetWindowSubclass Pin
krosswindz6-Aug-03 7:50
krosswindz6-Aug-03 7:50 
GeneralBITMAP Structures Pin
colormyiris6-Aug-03 7:28
colormyiris6-Aug-03 7:28 
GeneralRe: BITMAP Structures Pin
David Crow6-Aug-03 7:33
David Crow6-Aug-03 7:33 
GeneralCFileDialog with custom activeX Pin
sdfdsfa6-Aug-03 7:22
sdfdsfa6-Aug-03 7:22 
GeneralEditbox and checkbox control questions Pin
Binayak6-Aug-03 7:14
Binayak6-Aug-03 7:14 
GeneralRe: Editbox and checkbox control questions Pin
Brian Delahunty6-Aug-03 7:22
Brian Delahunty6-Aug-03 7:22 
QuestionTree Control : How to get selected Item while Capturing single click event? Pin
Binayak6-Aug-03 6:08
Binayak6-Aug-03 6:08 
AnswerRe: Tree Control : How to get selected Item while Capturing single click event? Pin
Rage6-Aug-03 6:38
professionalRage6-Aug-03 6:38 
GeneralRe: Tree Control : How to get selected Item while Capturing single click event? Pin
Binayak6-Aug-03 6:53
Binayak6-Aug-03 6:53 
GeneralChallenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 5:45
Tommy Svensson6-Aug-03 5:45 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Michael Dunn6-Aug-03 7:41
sitebuilderMichael Dunn6-Aug-03 7:41 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 10:20
Tommy Svensson6-Aug-03 10:20 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 23:03
Tommy Svensson6-Aug-03 23:03 

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.