Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: application wide global variables Pin
Alvaro Mendez15-Sep-03 6:25
Alvaro Mendez15-Sep-03 6:25 
GeneralRe: application wide global variables Pin
Johnny ²15-Sep-03 7:55
Johnny ²15-Sep-03 7:55 
GeneralRe: application wide global variables Pin
Alvaro Mendez15-Sep-03 12:11
Alvaro Mendez15-Sep-03 12:11 
GeneralRe: application wide global variables Pin
Alvaro Mendez15-Sep-03 6:29
Alvaro Mendez15-Sep-03 6:29 
GeneralRe: application wide global variables Pin
r i s h a b h s15-Sep-03 18:24
r i s h a b h s15-Sep-03 18:24 
GeneralRe: application wide global variables Pin
antlers16-Sep-03 5:34
antlers16-Sep-03 5:34 
GeneralRe: application wide global variables Pin
Michael Dunn15-Sep-03 5:47
sitebuilderMichael Dunn15-Sep-03 5:47 
GeneralRe: application wide global variables Pin
Navin15-Sep-03 6:54
Navin15-Sep-03 6:54 
Since this is MFC - you don't really need global variables. That is because the MFC framework gives you one automatically - your application class. Just put anything of global scope in your application class (usually CYourProgramApp) and make appropriate accessor functions for it.

You can always get the app by calling AfxGetApp.

Or, as others have said, you can design your code so that it doesn't use globals... Big Grin | :-D


If your nose runs and your feet smell, then you're built upside down.
GeneralNTFS Driver information Pin
abhinarulkar15-Sep-03 3:02
abhinarulkar15-Sep-03 3:02 
GeneralRe: NTFS Driver information Pin
Alexander M.,16-Sep-03 5:18
Alexander M.,16-Sep-03 5:18 
GeneralException about "Float Invalid Opration" Pin
yzpower15-Sep-03 2:33
sussyzpower15-Sep-03 2:33 
GeneralRe: Exception about "Float Invalid Opration" Pin
Jagadeesh VN15-Sep-03 3:13
Jagadeesh VN15-Sep-03 3:13 
GeneralPlease help me! Thanks! Pin
HansonDavid15-Sep-03 2:24
HansonDavid15-Sep-03 2:24 
GeneralMultiples views in Doc/View Pin
Cedric Moonen15-Sep-03 2:03
Cedric Moonen15-Sep-03 2:03 
GeneralRe: Multiples views in Doc/View Pin
JWood15-Sep-03 3:40
JWood15-Sep-03 3:40 
GeneralRe: Multiples views in Doc/View Pin
Cedric Moonen15-Sep-03 4:06
Cedric Moonen15-Sep-03 4:06 
GeneralRe: Multiples views in Doc/View Pin
JWood15-Sep-03 4:15
JWood15-Sep-03 4:15 
GeneralRe: Multiples views in Doc/View Pin
Cedric Moonen15-Sep-03 4:34
Cedric Moonen15-Sep-03 4:34 
GeneralRe: Multiples views in Doc/View Pin
JWood15-Sep-03 4:51
JWood15-Sep-03 4:51 
GeneralRe: Multiples views in Doc/View Pin
Cedric Moonen15-Sep-03 5:15
Cedric Moonen15-Sep-03 5:15 
GeneralRe: Multiples views in Doc/View Pin
JWood15-Sep-03 5:54
JWood15-Sep-03 5:54 
GeneralRe: Multiples views in Doc/View Pin
Cedric Moonen15-Sep-03 21:46
Cedric Moonen15-Sep-03 21:46 
Questionopen IE??? Pin
xxhimanshu15-Sep-03 1:59
xxhimanshu15-Sep-03 1:59 
AnswerRe: open IE??? Pin
Jagadeesh VN15-Sep-03 3:14
Jagadeesh VN15-Sep-03 3:14 
AnswerRe: open IE??? Pin
David Crow15-Sep-03 3:57
David Crow15-Sep-03 3:57 

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.