Click here to Skip to main content
15,910,797 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: modeless dialog & sockets Pin
Joaquín M López Muñoz26-Feb-02 0:21
Joaquín M López Muñoz26-Feb-02 0:21 
GeneralVisual C++ Debugger Macros and Add-Ins Pin
BootMan25-Feb-02 6:50
BootMan25-Feb-02 6:50 
GeneralRe: Visual C++ Debugger Macros and Add-Ins Pin
J Patel25-Feb-02 11:43
J Patel25-Feb-02 11:43 
Generaltooltips - how to retrieve the text Pin
deejay25-Feb-02 6:34
deejay25-Feb-02 6:34 
GeneralRe: tooltips - how to retrieve the text Pin
Jeremy Falcon25-Feb-02 9:04
professionalJeremy Falcon25-Feb-02 9:04 
GeneralRe: tooltips - how to retrieve the text Pin
deejay26-Feb-02 0:28
deejay26-Feb-02 0:28 
GeneralRe: tooltips - how to retrieve the text Pin
deejay28-Feb-02 5:17
deejay28-Feb-02 5:17 
GeneralGlobal variable clarifications Pin
dazinith25-Feb-02 6:01
dazinith25-Feb-02 6:01 
Basicly I have a file which has tons of crap in it which is being parsed into a CObArray. I want this to be accessable from all of my different classes, but i dont want it to have to parse the file in each of my classes. All of the previous posts on globals say to make a .h and a .cpp and just declare the global variables in there, and then include these files in the classes that need to access the variables. But if I make a .h and .cpp that handle the parsing of the file and storing into the CObArray, then wont it do this in every class I include it in?

Basicly I just want to load the file when the program starts, and be able to access other certain global variables, including the CObArray that is parsed from the file, and what the current data path are, and other things that will need to be access throughout the program. The CObArray should be constant since it's information will not change in the program, but the data path will be changed in the options section.

I have been just reading the variables by doing the GetParent() thing, but that causes major assertion problems when I call a class from different classes for obvious reasons.

any help will be much appreciated

-dz
GeneralRe: Global variable clarifications Pin
Joaquín M López Muñoz25-Feb-02 6:15
Joaquín M López Muñoz25-Feb-02 6:15 
GeneralRe: Global variable clarifications Pin
Jon Hulatt25-Feb-02 6:21
Jon Hulatt25-Feb-02 6:21 
GeneralRemove CDialogBar Border Pin
Brian V Shifrin25-Feb-02 6:05
Brian V Shifrin25-Feb-02 6:05 
GeneralOle drag and drop Pin
cycosi25-Feb-02 5:31
cycosi25-Feb-02 5:31 
GeneralMDI Question Pin
RobJones25-Feb-02 4:54
RobJones25-Feb-02 4:54 
GeneralRe: MDI Question Pin
Carlos Antollini25-Feb-02 5:06
Carlos Antollini25-Feb-02 5:06 
GeneralRe: MDI Question Pin
RobJones25-Feb-02 5:12
RobJones25-Feb-02 5:12 
GeneralRe: MDI Question Pin
Carlos Antollini26-Feb-02 3:31
Carlos Antollini26-Feb-02 3:31 
GeneralProblem about serialization and filename Pin
Charles Liu25-Feb-02 4:36
Charles Liu25-Feb-02 4:36 
GeneralThe procedure entry point could not be located Pin
Rubio25-Feb-02 4:04
Rubio25-Feb-02 4:04 
GeneralRe: The procedure entry point could not be located Pin
Cliff Dabrowski25-Feb-02 4:37
Cliff Dabrowski25-Feb-02 4:37 
GeneralRe: The procedure entry point could not be located Pin
Michael Dunn25-Feb-02 7:35
sitebuilderMichael Dunn25-Feb-02 7:35 
GeneralRe: The procedure entry point could not be located Pin
Tim Deveaux25-Feb-02 7:43
Tim Deveaux25-Feb-02 7:43 
GeneralMSN Messenger Send Message To Pin
25-Feb-02 3:55
suss25-Feb-02 3:55 
GeneralRe: MSN Messenger Send Message To Pin
Michael P Butler25-Feb-02 4:07
Michael P Butler25-Feb-02 4:07 
GeneralRe: MSN Messenger Send Message To Pin
Michael Dunn25-Feb-02 7:43
sitebuilderMichael Dunn25-Feb-02 7:43 
GeneralRe: MSN Messenger Send Message To Pin
octopussy26-Feb-02 3:29
octopussy26-Feb-02 3:29 

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.