
failure opening an empty document
what this for a failure. i created a sdi doc app with the explorer style
in vc++ 6.0.
this app used a acces db.... the drivers are installed on the machine
i can run this app on my computer and on a winnt system..... but when i
run this app on a computer ( win95b, installed with acces db drivers )
there
comes the failure shown in subject....
here some code:
BOOL CVaksApp::InitInstance()
{
/*{ CSingleDocTemplate* pNewDocTemplate = new CSingleDocTemplate(
IDR_ADMINAUSWAHLVIEW_TMPL,
RUNTIME_CLASS(CVaksDoc), // document class
RUNTIME_CLASS(CMainFrame), // frame class
RUNTIME_CLASS(CAdminAuswahlView)); // view class
AddDocTemplate(pNewDocTemplate);
}
{ CSingleDocTemplate* pNewDocTemplate1 = new CSingleDocTemplate(
IDR_ADMINVIEW_TMPL,
RUNTIME_CLASS(CVaksDoc), // document class
RUNTIME_CLASS(CMainFrame), // frame class
RUNTIME_CLASS(CAdminView)); // view class
//AddDocTemplate(pNewDocTemplate);
}
{ CSingleDocTemplate* pNewDocTemplate2 = new CSingleDocTemplate(
IDR_FILMVIEW_TMPL,
RUNTIME_CLASS(CVaksDoc), // document class
RUNTIME_CLASS(CMainFrame), // frame class
RUNTIME_CLASS(CFilmView)); // view class
//AddDocTemplate(pNewDocTemplate);
}
{
CSingleDocTemplate* pNewDocTemplate3 = new CSingleDocTemplate(
IDR_KUNDENVIEW_TMPL,
RUNTIME_CLASS( CVaksDoc ), // document class
RUNTIME_CLASS( CMainFrame ), // frame class
RUNTIME_CLASS( CKundenView )); // view class
//AddDocTemplate(pNewDocTemplate);
}
{
CSingleDocTemplate* pNewDocTemplate4 = new CSingleDocTemplate(
IDR_VERLEIHVIEW_TMPL,
RUNTIME_CLASS( CVaksDoc ), // document class
RUNTIME_CLASS( CMainFrame ), // frame class
RUNTIME_CLASS( CVerleihView )); // view class
//AddDocTemplate(pNewDocTemplate);
}
{
CSingleDocTemplate* pNewDocTemplate5 = new CSingleDocTemplate(
IDR_KUNDENAUSWAHLVIEW_TMPL,
RUNTIME_CLASS(CVaksDoc), // document class
RUNTIME_CLASS(CMainFrame), // frame class
RUNTIME_CLASS(CKundenAuswahlView)); // view class
//AddDocTemplate(pNewDocTemplate);
}*/
//AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
//LoadStdProfileSettings(0); // Load standard INI file options
(including MRU)
// initalize some code
StartUp();
// Register the application's document templates. Document templates
// serve as the connection between documents, frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CVaksDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CKundenAuswahlView));
AddDocTemplate(pDocTemplate);
how u can see i create only one template... later i delete the view in
the splitter wnd and create a new one....
i think it could be that i must register the views on top of the
code..... can u help me????
when u know what's that for a problem... plz notify me.... also per
email... thanx
ingo eberhardt
ke->SOFTWARE