Click here to Skip to main content
16,015,920 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Welcoming window Pin
Joan M4-Mar-03 6:27
professionalJoan M4-Mar-03 6:27 
GeneralRe: Welcoming window Pin
ColinDavies4-Mar-03 14:20
ColinDavies4-Mar-03 14:20 
QuestionHow to show a PNG image in my dialog ? Pin
adara4-Mar-03 3:43
adara4-Mar-03 3:43 
AnswerRe: How to show a PNG image in my dialog ? Pin
Mike Zinni4-Mar-03 5:09
Mike Zinni4-Mar-03 5:09 
GeneralRe: How to show a PNG image in my dialog ? Pin
adara4-Mar-03 5:35
adara4-Mar-03 5:35 
AnswerRe: How to show a PNG image in my dialog ? Pin
Bartosz Bien4-Mar-03 12:13
Bartosz Bien4-Mar-03 12:13 
AnswerRe: How to show a PNG image in my dialog ? Pin
Scott H. Settlemier4-Mar-03 15:32
Scott H. Settlemier4-Mar-03 15:32 
GeneralHelp Required for CFormView Pin
nutkase4-Mar-03 3:34
nutkase4-Mar-03 3:34 
AOA!
last night as i was trying to do one of my Assignments i tried to open a form using my Class inherted from CFormView!
the problem is that i was able to show the form as i want but as i close this window using the CWnd::DestroyWindow() i get an Assert Failure!
the Code i am using to initialize the window is as follows:

//defined in MyClass.h;
CMyClass Form;

CMyMainView::OnInitialUpdate()
{
CView::OnInitialUpdate();
CRect Rect;
GetClientRect(Rect);
Form.Create(NULL,"NewForm",WS_VISIBLE|WS_BORDER|WS_CHILD,Rect,this,1234,NULL);
}

And to Destroy the Window
CMyMainView::OnFileNew()
{
Form.DestroyWindow();
}
i cant understand y i get the assert failure when i click the new button on the toolbar!Cry | :((
the Assert Failure Message i get is as follows:

Debug Assertion Failed!
Program:E:\Chummi.exe
File:dbgheap.c
Line:1101
Expression:_CrtIsValideHeapPointer(pUserData)
//bla bla bla

plz help!
shoaib!
GeneralLoading correct IE profile from NT Svc. Pin
Neflyte4-Mar-03 3:31
Neflyte4-Mar-03 3:31 
Generalshowing the screen Pin
naradaji4-Mar-03 3:15
naradaji4-Mar-03 3:15 
GeneralRe: showing the screen Pin
jan larsen4-Mar-03 3:34
jan larsen4-Mar-03 3:34 
GeneralRe: showing the screen Pin
naradaji4-Mar-03 3:45
naradaji4-Mar-03 3:45 
GeneralRe: showing the screen Pin
jhwurmbach4-Mar-03 3:47
jhwurmbach4-Mar-03 3:47 
GeneralRe: showing the screen Pin
Anonymous4-Mar-03 5:33
Anonymous4-Mar-03 5:33 
Generalurgent..How to use GetDeviceCaps() n GetPixel() problem Pin
raner4-Mar-03 2:58
raner4-Mar-03 2:58 
GeneralRe: urgent..How to use GetDeviceCaps() n GetPixel() problem Pin
Scott H. Settlemier4-Mar-03 8:21
Scott H. Settlemier4-Mar-03 8:21 
GeneralRe: urgent..How to use GetDeviceCaps() n GetPixel() problem Pin
raner4-Mar-03 9:39
raner4-Mar-03 9:39 
GeneralRe: urgent..How to use GetDeviceCaps() n GetPixel() problem Pin
73Zeppelin4-Mar-03 16:34
73Zeppelin4-Mar-03 16:34 
GeneralRe: urgent..How to use GetDeviceCaps() n GetPixel() problem Pin
raner5-Mar-03 5:09
raner5-Mar-03 5:09 
GeneralRe: urgent..How to use GetDeviceCaps() n GetPixel() problem Pin
Scott H. Settlemier5-Mar-03 6:34
Scott H. Settlemier5-Mar-03 6:34 
GeneralBug in Visual C++ 6.0 MFC Appwizard Pin
Tre K Renegade4-Mar-03 2:20
Tre K Renegade4-Mar-03 2:20 
GeneralRe: Bug in Visual C++ 6.0 MFC Appwizard Pin
Jon Hulatt4-Mar-03 2:56
Jon Hulatt4-Mar-03 2:56 
GeneralJPEG,GIF File Display Pin
RaajaOfSelf4-Mar-03 1:20
RaajaOfSelf4-Mar-03 1:20 
GeneralRe: JPEG,GIF File Display Pin
Chris Losinger4-Mar-03 1:36
professionalChris Losinger4-Mar-03 1:36 
GeneralRe: JPEG,GIF File Display Pin
Chintan4-Mar-03 3:00
Chintan4-Mar-03 3:00 

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.