Link to home
Start Free TrialLog in
Avatar of i_seek_ee_i_got_expertise
i_seek_ee_i_got_expertise

asked on

Failed to create empty document

How to troubleshoot if I encountered a message box with the following:

Failed to create empty document

Application using Single Document Interface;
Data Access Technology using ODBC; and
Database using Microsoft Access97

Seeking for solution or troubleshooting options.  Thanking in advance.

Regards
The followers of Christ
December 18, 1999 - Saturday (15:00GMT)
Avatar of inpras
inpras

Whats the context?
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of i_seek_ee_i_got_expertise

ASKER

Thanks mikeblas and inpras for both of your answers and comments.

Actually the application of mine was fine with an earlier approach that has been performed with only one view & one recordset.  Later,  with different approach involving three recordsets and two views, I encountered the previously said error message.

Switching between views process were carried out in the CMainFrame class using 2 different handlers:-

i. First View - View the Share Holder information; and
ii.Second View - View the Report which is in the form of query-based.

The neccessary codes found in either view handler are as follows:-

void CMainFrame::OnScreenReport()
{
  CRuntimeClass* pNewView;
 
  PNewView = RUNTIME_CLASS (CViewtheCategoryRecord1);  //View the Category Record where it applies to the option made through the menu

  CCreateContext cContext;

  cContext.m_pNewViewClass = pNewView;
  cContext.m_pCurrentDoc = GetActiveDocument();
 
  CView* pView = STATIC_DOWNCAST(CView, CreateView(&cContext));

  if (pView != NULL)
  {
    pView->ShowWindow(SW_SHOW);
    pView->OnInitialUpdate();
    SetActiveView(pView,TRUE);
    this->RecalcLayout();
    pCurrView->DestroyWindow();
  }
}






Kindly assist me to debug.
Advance thanks.

Regards,

The followers of Christ
December 19, 1999 - Sunday (12:20 GMT)
What messages are in your debug output window when this happens?

..B ekiM