Click here to Skip to main content
15,894,410 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Detecting all available display modes and storing them in an array of structs? Pin
Jason Henderson29-Jun-02 20:31
Jason Henderson29-Jun-02 20:31 
GeneralRe: Detecting all available display modes and storing them in an array of structs? Pin
Mike Nordell30-Jun-02 0:11
Mike Nordell30-Jun-02 0:11 
GeneralRe: Detecting all available display modes and storing them in an array of structs? Pin
Jason Henderson1-Jul-02 4:31
Jason Henderson1-Jul-02 4:31 
AnswerRe: Detecting all available display modes and storing them in an array of structs? Pin
Mike Nordell30-Jun-02 0:15
Mike Nordell30-Jun-02 0:15 
GeneralRe: Detecting all available display modes and storing them in an array of structs? Pin
Alan Chambers1-Jul-02 7:29
Alan Chambers1-Jul-02 7:29 
GeneralCWinApp object Pin
Paul M Watt28-Jun-02 21:49
mentorPaul M Watt28-Jun-02 21:49 
GeneralRe: CWinApp object Pin
Alexandru Savescu28-Jun-02 22:04
Alexandru Savescu28-Jun-02 22:04 
GeneralRe: CWinApp object Pin
Paul M Watt28-Jun-02 22:23
mentorPaul M Watt28-Jun-02 22:23 
You may be right about the problem being with my code. But I can get both debug and release builds to compile and start running.

The one main thing that confuses me is that the winApp object is present and gets initialized in debug mode, but it is like it never gets initialized or recognized in Release mode. So the first time that the winapp object is referenced it crashes.

If I trace to where MFC gets its pointer to the WinApp object (inside of the MFC source code), and I type the name of the Winapp variable in the watch window, it does not recognize the variable and thinks that it does not exist.

As far as posting some code what would you like to see? My instance of the CWinApp object is declared like this inside of my main cpp file:

CAMClientApp theApp;

It is declared like this in the matchin header file:

extern CAMClientApp theApp;

Thanks for your help, if you have any other ideas I would like to hear them.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: CWinApp object Pin
Alexandru Savescu29-Jun-02 22:25
Alexandru Savescu29-Jun-02 22:25 
GeneralRe: CWinApp object Pin
Paul M Watt28-Jun-02 22:47
mentorPaul M Watt28-Jun-02 22:47 
Generalexport of Doc/View Arch Pin
surbinsho28-Jun-02 21:16
surbinsho28-Jun-02 21:16 
QuestionHow do I use Alt Tab in Full Screen App? Pin
28-Jun-02 20:52
suss28-Jun-02 20:52 
QuestionHow do i make iexplorer back or forward? Pin
brapler28-Jun-02 19:44
brapler28-Jun-02 19:44 
Generalunsigned char Pin
dhon28-Jun-02 18:37
dhon28-Jun-02 18:37 
GeneralRe: unsigned char Pin
Christian Graus28-Jun-02 22:53
protectorChristian Graus28-Jun-02 22:53 
GeneralRe: unsigned char Pin
Mike Nordell30-Jun-02 0:17
Mike Nordell30-Jun-02 0:17 
Generalserver socket problem, simple... Pin
includeh1028-Jun-02 17:44
includeh1028-Jun-02 17:44 
GeneralRe: server socket problem, simple... Pin
Christopher Lord28-Jun-02 20:40
Christopher Lord28-Jun-02 20:40 
GeneralRe: server socket problem, simple... Pin
includeh1029-Jun-02 16:02
includeh1029-Jun-02 16:02 
GeneralRe: server socket problem, simple... Pin
markkuk29-Jun-02 23:21
markkuk29-Jun-02 23:21 
Generalsynchronize remote recordset with local one Pin
28-Jun-02 17:42
suss28-Jun-02 17:42 
Questionhow to get info from stdio? Pin
includeh1028-Jun-02 17:36
includeh1028-Jun-02 17:36 
AnswerRe: how to get info from stdio? Pin
Michael Dunn28-Jun-02 20:20
sitebuilderMichael Dunn28-Jun-02 20:20 
GeneralRe: how to get info from stdio? Pin
Mike Nordell30-Jun-02 0:20
Mike Nordell30-Jun-02 0:20 
GeneralRe: how to get info from stdio? Pin
includeh1030-Jun-02 21:06
includeh1030-Jun-02 21:06 

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.