Click here to Skip to main content
15,926,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 10:15
ns11-Sep-02 10:15 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 10:21
professionalRavi Bhavnani11-Sep-02 10:21 
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 10:34
ns11-Sep-02 10:34 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 10:39
professionalRavi Bhavnani11-Sep-02 10:39 
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 10:46
ns11-Sep-02 10:46 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 10:51
professionalRavi Bhavnani11-Sep-02 10:51 
GeneralRe: an XOR problem!!! Pin
ns11-Sep-02 10:49
ns11-Sep-02 10:49 
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 10:55
professionalRavi Bhavnani11-Sep-02 10:55 
I keep my globals in a singleton Globals class. That way, from anywhere in the code, I can do stuff like:
Globals* pGlobals = Globals::getGlobals();
ASSERT (pGlobals != NULL);
printf ("%s\n", pGlobals->getDontCareString());
The Globals constructor contains all the one-time initialization code. This makes for safe coding and easy maintenance. All you need to do is #include "Globals.h" in every .cpp file that references it.

/ravi

Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
GeneralRe: an XOR problem!!! Pin
Ravi Bhavnani11-Sep-02 11:04
professionalRavi Bhavnani11-Sep-02 11:04 
GeneralRe: an XOR problem!!!Update Pin
ns12-Sep-02 2:57
ns12-Sep-02 2:57 
GeneralRe: an XOR problem!!! Pin
Michael Dunn11-Sep-02 13:36
sitebuilderMichael Dunn11-Sep-02 13:36 
GeneralWeird DLL dependencies Pin
Jim Crafton11-Sep-02 9:38
Jim Crafton11-Sep-02 9:38 
GeneralRe: Weird DLL dependencies Pin
Renjith Ramachandran11-Sep-02 9:49
Renjith Ramachandran11-Sep-02 9:49 
GeneralRe: Weird DLL dependencies Pin
Rama Krishna Vavilala11-Sep-02 9:49
Rama Krishna Vavilala11-Sep-02 9:49 
GeneralRe: Weird DLL dependencies Pin
Jim Crafton11-Sep-02 9:57
Jim Crafton11-Sep-02 9:57 
GeneralRe: Weird DLL dependencies Pin
Jim Crafton11-Sep-02 10:01
Jim Crafton11-Sep-02 10:01 
GeneralDisplaying a string in a CStatic control Pin
Luis E. Cuadrado11-Sep-02 9:23
Luis E. Cuadrado11-Sep-02 9:23 
GeneralRe: Displaying a string in a CStatic control Pin
Renjith Ramachandran11-Sep-02 9:47
Renjith Ramachandran11-Sep-02 9:47 
GeneralRe: Displaying a string in a CStatic control Pin
Carlos Antollini11-Sep-02 9:47
Carlos Antollini11-Sep-02 9:47 
GeneralRe: Displaying a string in a CStatic control Pin
Luis E. Cuadrado11-Sep-02 10:06
Luis E. Cuadrado11-Sep-02 10:06 
GeneralRe: Displaying a string in a CStatic control Pin
Carlos Antollini11-Sep-02 10:13
Carlos Antollini11-Sep-02 10:13 
Generalodd behavior with an #import statement Pin
ns11-Sep-02 9:23
ns11-Sep-02 9:23 
GeneralRe: odd behavior with an #import statement Pin
Ranjan Banerji11-Sep-02 9:33
Ranjan Banerji11-Sep-02 9:33 
GeneralRe: odd behavior with an #import statement Pin
ns11-Sep-02 9:34
ns11-Sep-02 9:34 
Generalhelp! Breakpoint cannot be set Pin
ns11-Sep-02 8:10
ns11-Sep-02 8:10 

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.