i used the MFC Exe Dialog Wizard to create a program.
i want to set a variable and then use a MessageBox to pop it up for me.
I tried to set a Global variable by placing it in one of the generated Header files, but it says it tries to create it multiple times. i tried to static it, but it won't take a value now.
how can i create a global variable?
please provide an example with the answer and specific location where to place the definition.
i tried placing it in the STDAFX.H as well and that failed.
thanks,
NyTyme
i want to set a variable and then use a MessageBox to pop it up for me.
I tried to set a Global variable by placing it in one of the generated Header files, but it says it tries to create it multiple times. i tried to static it, but it won't take a value now.
how can i create a global variable?
please provide an example with the answer and specific location where to place the definition.
i tried placing it in the STDAFX.H as well and that failed.
thanks,
NyTyme