Click here to Skip to main content
16,009,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Member functions are "unresolved external symbol" Pin
Rickard Andersson206-Mar-03 2:46
Rickard Andersson206-Mar-03 2:46 
GeneralRasEnumEntries please help Pin
Jump_Around6-Mar-03 0:45
Jump_Around6-Mar-03 0:45 
GeneralRe: RasEnumEntries please help Pin
Rickard Andersson206-Mar-03 0:52
Rickard Andersson206-Mar-03 0:52 
GeneralRe: RasEnumEntries please help Pin
João Paulo Figueira6-Mar-03 1:05
professionalJoão Paulo Figueira6-Mar-03 1:05 
GeneralRe: RasEnumEntries please help Pin
Martyn Pearson6-Mar-03 3:07
Martyn Pearson6-Mar-03 3:07 
GeneralRe: RasEnumEntries please help Pin
Jump_Around6-Mar-03 3:10
Jump_Around6-Mar-03 3:10 
GeneralRe: RasEnumEntries please help Pin
Big Art6-Mar-03 8:14
Big Art6-Mar-03 8:14 
GeneralProblems using CFormView Pin
nutkase6-Mar-03 0:37
nutkase6-Mar-03 0:37 
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!Confused | :confused:
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!
GeneralRe: Problems using CFormView Pin
Hans Ruck6-Mar-03 1:18
Hans Ruck6-Mar-03 1:18 
GeneralRe: Problems using CFormView Pin
nutkase6-Mar-03 1:31
nutkase6-Mar-03 1:31 
QuestionHow to display full column length in SQL Pin
IrishSonic5-Mar-03 23:56
IrishSonic5-Mar-03 23:56 
AnswerRe: How to display full column length in SQL Pin
Alvaro Mendez6-Mar-03 5:31
Alvaro Mendez6-Mar-03 5:31 
GeneralRe: How to display full column length in SQL Pin
IrishSonic6-Mar-03 11:20
IrishSonic6-Mar-03 11:20 
GeneralDll problem, A call to AfxGetResourceHandle() results in Debug Assertion Failure. Pin
Farrukh4u5-Mar-03 23:49
Farrukh4u5-Mar-03 23:49 
GeneralRe: Dll problem, A call to AfxGetResourceHandle() results in Debug Assertion Failure. Pin
Hans Ruck6-Mar-03 0:23
Hans Ruck6-Mar-03 0:23 
GeneralRe: Dll problem, A call to AfxGetResourceHandle() results in Debug Assertion Failure. Pin
Farrukh4u10-Mar-03 23:17
Farrukh4u10-Mar-03 23:17 
GeneralRe: Dll problem, A call to AfxGetResourceHandle() results in Debug Assertion Failure. Pin
Hans Ruck13-Mar-03 0:39
Hans Ruck13-Mar-03 0:39 
GeneralSingle Document in MDI app or.... Pin
luedi5-Mar-03 22:55
luedi5-Mar-03 22:55 
GeneralDetect event 2 Pin
jeremysay5-Mar-03 22:45
jeremysay5-Mar-03 22:45 
GeneralRe: Detect event 2 Pin
Rage5-Mar-03 23:21
professionalRage5-Mar-03 23:21 
GeneralRe: Detect event 2 Pin
Anonymous6-Mar-03 0:27
Anonymous6-Mar-03 0:27 
GeneralRe: Detect event 2 Pin
jeremysay6-Mar-03 1:31
jeremysay6-Mar-03 1:31 
QuestionHow to minimize the main window and the child windows to remain on the desktop? Pin
julych5-Mar-03 22:30
julych5-Mar-03 22:30 
AnswerRe: How to minimize the main window and the child windows to remain on the desktop? Pin
MAAK5-Mar-03 23:51
MAAK5-Mar-03 23:51 
GeneralExcel automation Pin
Rage5-Mar-03 20:41
professionalRage5-Mar-03 20:41 

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.