Click here to Skip to main content
15,902,908 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Maxwell Chen4-Mar-08 22:36
Maxwell Chen4-Mar-08 22:36 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Maxwell Chen4-Mar-08 22:33
Maxwell Chen4-Mar-08 22:33 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Randor 5-Mar-08 3:20
professional Randor 5-Mar-08 3:20 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Mark Salsbery5-Mar-08 14:35
Mark Salsbery5-Mar-08 14:35 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
WilliamFalconerUK26-Jan-09 0:35
professionalWilliamFalconerUK26-Jan-09 0:35 
GeneralRe: Add/Remove Operation is not possible because the code element is read only Pin
Randor 26-Jan-09 9:31
professional Randor 26-Jan-09 9:31 
QuestionCWinApp Class having one object only??? Pin
neha.agarwal274-Mar-08 21:07
neha.agarwal274-Mar-08 21:07 
AnswerRe: CWinApp Class having one object only??? Pin
Mark Salsbery4-Mar-08 21:18
Mark Salsbery4-Mar-08 21:18 
Because MFC was designed that way.  The one object wraps all the app instance
info that Windows apps have only one of, like the HINSTANCE, and the commandline
params passed.  It also holds any other application-wide stuff of which there can only be one.
That makes it a nice place to hide app-wide variables that in the old days would be global. Smile | :)

Plus it makes no sense to have more than one app object in a single app.

Mark







Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: CWinApp Class having one object only??? Pin
Rajkumar R4-Mar-08 21:26
Rajkumar R4-Mar-08 21:26 
AnswerRe: CWinApp Class having one object only??? Pin
Rajesh R Subramanian4-Mar-08 21:57
professionalRajesh R Subramanian4-Mar-08 21:57 
AnswerRe: CWinApp Class having one object only??? Pin
CPallini4-Mar-08 22:07
mveCPallini4-Mar-08 22:07 
Question[Message Deleted] Pin
savitri4-Mar-08 19:57
savitri4-Mar-08 19:57 
GeneralRe: how to use switch statement in VC++ Pin
uusheikh4-Mar-08 20:17
uusheikh4-Mar-08 20:17 
GeneralRe: how to use switch statement in VC++ Pin
ThatsAlok4-Mar-08 20:21
ThatsAlok4-Mar-08 20:21 
GeneralRe: how to use switch statement in VC++ Pin
Rajesh R Subramanian4-Mar-08 20:21
professionalRajesh R Subramanian4-Mar-08 20:21 
GeneralRe: how to use switch statement in VC++ Pin
ThatsAlok4-Mar-08 20:26
ThatsAlok4-Mar-08 20:26 
GeneralRe: how to use switch statement in VC++ Pin
ThatsAlok4-Mar-08 20:27
ThatsAlok4-Mar-08 20:27 
GeneralRe: how to use switch statement in VC++ Pin
Cedric Moonen4-Mar-08 20:56
Cedric Moonen4-Mar-08 20:56 
GeneralRe: [Message Deleted] Pin
toxcct4-Mar-08 21:36
toxcct4-Mar-08 21:36 
GeneralRe: [Message Deleted] Pin
Rajesh R Subramanian4-Mar-08 21:59
professionalRajesh R Subramanian4-Mar-08 21:59 
GeneralRe: [Message Deleted] Pin
led mike5-Mar-08 4:26
led mike5-Mar-08 4:26 
GeneralRe: [Message Deleted] Pin
Rajesh R Subramanian5-Mar-08 20:46
professionalRajesh R Subramanian5-Mar-08 20:46 
GeneralRe: [Message Deleted] Pin
Christian Graus5-Mar-08 9:17
protectorChristian Graus5-Mar-08 9:17 
GeneralProblem with Resolved Name Pin
john56324-Mar-08 19:53
john56324-Mar-08 19:53 
GeneralRe: Problem with Resolved Name Pin
ThatsAlok4-Mar-08 20:23
ThatsAlok4-Mar-08 20:23 

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.