I am deriving a document from a document that is in a dll.
The document in the dll is derived from CDocument.
Class CReportDoc: public CDocument // contained in a dll
Class CRepWorksDoc: public CReportDoc
IMPLEMENT_DYNCREATE(CRepWorksDoc, CReportDoc)
when i run the program i get a Debug Assertion Failed error
file: doctempl.cpp
line: 32
when I press retry I find the assert failed on:
ASSERT(pDocClass == NULL ||
pDocClass->IsDerivedFrom(RUNTIME_CLASS(CDocument)));
in:
CDocTemplate::CDocTemplate(UINT nIDResource, CRuntimeClass* pDocClass,
CRuntimeClass* pFrameClass, CRuntimeClass* pViewClass)
{
Why is it so?
There are quite a few functions contained in the dll for writing a report. There are no compile errors.
Thanks.
The document in the dll is derived from CDocument.
Class CReportDoc: public CDocument // contained in a dll
Class CRepWorksDoc: public CReportDoc
IMPLEMENT_DYNCREATE(CRepWorksDoc, CReportDoc)
when i run the program i get a Debug Assertion Failed error
file: doctempl.cpp
line: 32
when I press retry I find the assert failed on:
ASSERT(pDocClass == NULL ||
pDocClass->IsDerivedFrom(RUNTIME_CLASS(CDocument)));
in:
CDocTemplate::CDocTemplate(UINT nIDResource, CRuntimeClass* pDocClass,
CRuntimeClass* pFrameClass, CRuntimeClass* pViewClass)
{
Why is it so?
There are quite a few functions contained in the dll for writing a report. There are no compile errors.
Thanks.