Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: move up call stack one level Pin
led mike28-Nov-07 6:25
led mike28-Nov-07 6:25 
AnswerRe: move up call stack one level Pin
maciu202028-Nov-07 7:45
maciu202028-Nov-07 7:45 
GeneralRe: move up call stack one level Pin
Andy H28-Nov-07 11:07
Andy H28-Nov-07 11:07 
Questionmouse whell scroll Pin
Tara1428-Nov-07 5:27
Tara1428-Nov-07 5:27 
AnswerRe: mouse whell scroll Pin
Nelek28-Nov-07 22:01
protectorNelek28-Nov-07 22:01 
GeneralRe: mouse whell scroll Pin
Tara1430-Nov-07 0:09
Tara1430-Nov-07 0:09 
QuestionHow Create and unse a Global Var Pin
Schehaider_Aymen28-Nov-07 4:55
Schehaider_Aymen28-Nov-07 4:55 
AnswerRe: How Create and unse a Global Var [modified] Pin
CPallini28-Nov-07 5:14
mveCPallini28-Nov-07 5:14 
you have already an example of it:
The Application Wizard defines the global variable theApp inside the application source file (i.e. AutoParallApp.cpp AutoParall.cpp in your case).
You can use theApp on any other source file (for instance in the MainFrm.cpp) provided you declare it as extern (i.e. extern CAutoParallApp theApp;) in the corrensponding header file (MainFrm.h in the previous example).
You can also make it visible to all sources, declaring it extern inside the StdAfx.h header (included by all sources of you project).

I hope that you can find out your way now.
Smile | :)


-- modified at 11:35 Wednesday 28th November, 2007

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: How Create and unse a Global Var Pin
Schehaider_Aymen28-Nov-07 5:23
Schehaider_Aymen28-Nov-07 5:23 
GeneralRe: How Create and unse a Global Var Pin
CPallini28-Nov-07 5:35
mveCPallini28-Nov-07 5:35 
GeneralRe: How Create and unse a Global Var Pin
Schehaider_Aymen28-Nov-07 5:37
Schehaider_Aymen28-Nov-07 5:37 
GeneralRe: How Create and unse a Global Var Pin
Schehaider_Aymen28-Nov-07 5:49
Schehaider_Aymen28-Nov-07 5:49 
AnswerRe: How Create and unse a Global Var Pin
David Crow28-Nov-07 6:22
David Crow28-Nov-07 6:22 
GeneralRe: How Create and unse a Global Var Pin
led mike28-Nov-07 6:29
led mike28-Nov-07 6:29 
GeneralRe: How Create and unse a Global Var Pin
David Crow28-Nov-07 6:57
David Crow28-Nov-07 6:57 
QuestionInvert Region colors GDI+ Pin
bob1697228-Nov-07 4:22
bob1697228-Nov-07 4:22 
QuestionSQL Server 2005 Compact Edition Pin
Canito7628-Nov-07 3:27
Canito7628-Nov-07 3:27 
QuestionAfxMessageBox Pin
shir_k28-Nov-07 2:22
shir_k28-Nov-07 2:22 
AnswerRe: AfxMessageBox Pin
David Crow28-Nov-07 3:08
David Crow28-Nov-07 3:08 
GeneralRe: AfxMessageBox Pin
shir_k28-Nov-07 3:15
shir_k28-Nov-07 3:15 
QuestionRe: AfxMessageBox Pin
Maximilien28-Nov-07 3:12
Maximilien28-Nov-07 3:12 
AnswerRe: AfxMessageBox Pin
shir_k28-Nov-07 3:30
shir_k28-Nov-07 3:30 
GeneralRe: AfxMessageBox Pin
David Crow28-Nov-07 3:45
David Crow28-Nov-07 3:45 
GeneralRe: AfxMessageBox Pin
Maximilien28-Nov-07 4:33
Maximilien28-Nov-07 4:33 
GeneralRe: AfxMessageBox Pin
Paresh Chitte28-Nov-07 17:18
Paresh Chitte28-Nov-07 17:18 

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.