Click here to Skip to main content
15,904,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: accelerator table problem Pin
toxcct25-Nov-04 1:28
toxcct25-Nov-04 1:28 
GeneralRe: accelerator table problem Pin
Jack Puppy25-Nov-04 1:56
Jack Puppy25-Nov-04 1:56 
GeneralRe: accelerator table problem Pin
toxcct25-Nov-04 2:30
toxcct25-Nov-04 2:30 
Generalbuttin VC++ Pin
Tripura.K24-Nov-04 22:41
Tripura.K24-Nov-04 22:41 
GeneralCListCtrl Row height Pin
Neelesh K J Jain24-Nov-04 21:59
Neelesh K J Jain24-Nov-04 21:59 
GeneralRe: CListCtrl Row height Pin
Mike Danberg25-Nov-04 12:35
Mike Danberg25-Nov-04 12:35 
GeneralException in ~CFrameWnd Pin
nutkase24-Nov-04 21:31
nutkase24-Nov-04 21:31 
GeneralRe: Exception in ~CFrameWnd Pin
Nick Nougat29-Nov-04 6:14
Nick Nougat29-Nov-04 6:14 
Probably MFC tries to delete your CFrameWnd on application exit, but you have allocated it on the stack.

MFC expects that frame windows are 'automatically allocated' by the framework, as they are when you use the 'normal' MDI/SDI approach with the wizards. They get automatically deleted when the application shuts down.
Therefore, if you create a CFrameWnd manually, you have to allocate it via new and must not delete it on application exit. The framework does this for you...

This is one of the more obscure "features" of MFC, for which I never found any documentation...

Hope this helps,
Nick

EDIT: some typos
GeneralEnveloped data of Cryptography Pin
lakshmiSujata24-Nov-04 19:48
lakshmiSujata24-Nov-04 19:48 
GeneralSpin Button is Odd Pin
Abhimanyu Sirohi24-Nov-04 18:29
Abhimanyu Sirohi24-Nov-04 18:29 
GeneralRe: Spin Button is Odd Pin
PJ Arends24-Nov-04 20:53
professionalPJ Arends24-Nov-04 20:53 
GeneralRe: Spin Button is Odd Pin
toxcct24-Nov-04 21:05
toxcct24-Nov-04 21:05 
QuestionWhy use the Registry? Pin
Vivi Chellappa24-Nov-04 16:46
professionalVivi Chellappa24-Nov-04 16:46 
AnswerRe: Why use the Registry? Pin
ThatsAlok24-Nov-04 17:07
ThatsAlok24-Nov-04 17:07 
AnswerRe: Why use the Registry? Pin
Roger Wright24-Nov-04 20:16
professionalRoger Wright24-Nov-04 20:16 
GeneralRe: Why use the Registry? Pin
Vivi Chellappa25-Nov-04 0:56
professionalVivi Chellappa25-Nov-04 0:56 
GeneralProgram closing Pin
lisoft24-Nov-04 15:03
lisoft24-Nov-04 15:03 
GeneralRe: Program closing Pin
Mike Danberg24-Nov-04 15:57
Mike Danberg24-Nov-04 15:57 
GeneralRe: Program closing Pin
lisoft24-Nov-04 17:04
lisoft24-Nov-04 17:04 
GeneralRe: Program closing Pin
Mike Danberg24-Nov-04 17:18
Mike Danberg24-Nov-04 17:18 
GeneralRe: Program closing Pin
lisoft24-Nov-04 18:34
lisoft24-Nov-04 18:34 
GeneralRe: Program closing Pin
lisoft24-Nov-04 19:09
lisoft24-Nov-04 19:09 
GeneralRe: Program closing Pin
Mike Danberg24-Nov-04 19:26
Mike Danberg24-Nov-04 19:26 
Generalfile too big Pin
Fernando A. Gomez F.24-Nov-04 13:47
Fernando A. Gomez F.24-Nov-04 13:47 
GeneralRe: file too big Pin
John R. Shaw24-Nov-04 14:05
John R. Shaw24-Nov-04 14:05 

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.