Click here to Skip to main content
15,923,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printing under MFC - ARGH !!! Pin
l a u r e n18-May-01 12:51
l a u r e n18-May-01 12:51 
GeneralRe: Printing under MFC - ARGH !!! Pin
Christian Graus18-May-01 12:59
protectorChristian Graus18-May-01 12:59 
GeneralRe: Printing under MFC - ARGH !!! Pin
CodeGuy18-May-01 16:50
CodeGuy18-May-01 16:50 
GeneralUnicode File I/O Pin
Shankar Chandra Bose17-May-01 14:35
Shankar Chandra Bose17-May-01 14:35 
GeneralRe: Unicode File I/O Pin
l a u r e n18-May-01 12:53
l a u r e n18-May-01 12:53 
GeneralCRecordset and SQL Server 2000 Pin
SuperGeek17-May-01 11:15
SuperGeek17-May-01 11:15 
GeneralRe: CRecordset and SQL Server 2000 Pin
4-Sep-01 1:27
suss4-Sep-01 1:27 
GeneralCFormView Throwing Exception Pin
Christopher17-May-01 10:45
Christopher17-May-01 10:45 
I am writing a program that has two windows in it (splitter). I want both sides to run a dialog. I have created the one for the right side, but when I try and run it I get a debug assertion error. Here is the code I am using:
In CMainFrame:


BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{

if (!m_wndSplitter.CreateStatic(this, 1, 2, WS_CHILD) )
{
AfxMessageBox("Error Creating Splitter Window. [CSplitter::CreatStatic]", MB_OK);
AfxAbort();
//Failed To Create Splitter Window
}

SIZE wndSize;
wndSize.cx=300;
wndSize.cy=600;

if ( (!m_wndSplitter.CreateView(0,0, RUNTIME_CLASS(CTestView), wndSize, pContext)) ||
(!m_wndSplitter.CreateView(0,1, RUNTIME_CLASS(CTagDlg), wndSize, pContext)) )
{
AfxMessageBox("Error Creating Splitter Views. [CSplitter::CreateView]", MB_OK);
AfxAbort();
//Check both views
}


return TRUE;
}
The error seems to come from viewform.cpp, in CFormView::Create it call this function:

if (!_AfxCheckDialogTemplate(m_lpszTemplateName, TRUE))
{
ASSERT(FALSE); // invalid dialog template name
PostNcDestroy(); // cleanup if Create fails too soon
return FALSE;
}

And that is what is throwing the exception. Anyone know how I can fix this?





GeneralEjecting a CD Pin
17-May-01 8:53
suss17-May-01 8:53 
GeneralRe: Ejecting a CD Pin
Ed Dixon17-May-01 9:21
Ed Dixon17-May-01 9:21 
GeneralRe: Ejecting a CD Pin
Tomasz Sowinski17-May-01 9:28
Tomasz Sowinski17-May-01 9:28 
GeneralRe: Ejecting a CD Pin
17-May-01 18:11
suss17-May-01 18:11 
GeneralRe: Ejecting a CD Pin
Anders Molin17-May-01 23:54
professionalAnders Molin17-May-01 23:54 
GeneralRe: Ejecting a CD Pin
18-May-01 4:01
suss18-May-01 4:01 
GeneralRe: Ejecting a CD Pin
Carlos Antollini17-May-01 9:49
Carlos Antollini17-May-01 9:49 
QuestionHow to make an output file in VC++ Pin
mr200317-May-01 8:49
mr200317-May-01 8:49 
AnswerRe: How to make an output file in VC++ Pin
Ravi Bhavnani17-May-01 10:08
professionalRavi Bhavnani17-May-01 10:08 
GeneralDynamic creation of objects Pin
Luis Barreira17-May-01 7:57
Luis Barreira17-May-01 7:57 
GeneralRe: Dynamic creation of objects Pin
Chris Losinger17-May-01 8:11
professionalChris Losinger17-May-01 8:11 
GeneralRe: Dynamic creation of objects Pin
MikeG18-May-01 3:12
MikeG18-May-01 3:12 
GeneralRe: Dynamic creation of objects Pin
Tomasz Sowinski18-May-01 3:21
Tomasz Sowinski18-May-01 3:21 
GeneralDial-In Authentication by RADIUS NT/2000 Pin
17-May-01 7:44
suss17-May-01 7:44 
GeneralMemory error closing if use function that are in DLL Pin
17-May-01 7:41
suss17-May-01 7:41 
GeneralRe: Memory error closing if use function that are in DLL Pin
Dark Angel17-May-01 16:09
Dark Angel17-May-01 16:09 
GeneralLogon Domain and Userid Pin
Chris Meech17-May-01 5:59
Chris Meech17-May-01 5:59 

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.