Using Static Lib For Creating the MFC Controls
-
Hi, I have created a LIB using Win32 Static Library in which i have overriden the CWnd ::Create method. when i use this LIB in MFC application to create the Window its giving ASSERSETION due to parent window handle is becoming NULL.
-
Hi, I have created a LIB using Win32 Static Library in which i have overriden the CWnd ::Create method. when i use this LIB in MFC application to create the Window its giving ASSERSETION due to parent window handle is becoming NULL.
Window handles don't just "become NULL". The problem could be anything from mismatched or multiple MFC libraries to errors in your code. Have you tried to debug it? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Window handles don't just "become NULL". The problem could be anything from mismatched or multiple MFC libraries to errors in your code. Have you tried to debug it? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Hi, I have created the Win32 Static Library which has MFC Support and Using Precompiled Header (This LIB has been created by selecting Win32 Static Library from MFC Project Option ) I have added one class to library which is derived from CWnd, In Derived Class i have overriden the Create()method to create the window. At Application side I have MFC SDI application which has multiple splitters where each pane of splitter corrsoponds to one class. One of the class wants to create the window using the LIB that i have created. when i give call to the Create from application side it is giving assertion on ASSERT(afxCurrentInstanceHandle != NULL) To Test LIB,i have tried for following things I have created the TestApp using MFC SDI and while generating the Application CTestView is derived from the CFormView. here call to Create of LIB is working fine.