15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


CWnd::Create Problem

Marco Valerio -- Marco.Valerio@italtel.it
Monday, March 10, 1997

Environment:  Windows 95, VC++ 4.2b, Visual Basic 4 32 bit

 Hi, 

I call this Function within my DLL (not Extension MFC DLL) that uses shared
MFC library
First I've allocated a CWnd class.
 
	CreateEx(0,
		AfxRegisterWndClass(0),
		"Test Wnd",
		WS_VISIBLE | WS_BORDER | WS_POPUP,
		0,0,400,400,	// bounding rectangle,
		NULL,
		NULL); //id

 If I call this functions within VC++ 4.2 I haven't any problem, but if I
 call from VB 4 I've an assertion error at line 19 file afxwin1.inl
 
 _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetInstanceHandle()
 	{ ASSERT(afxCurrentInstanceHandle != NULL);
 		return afxCurrentInstanceHandle; }


Any suggestion ?

Thanks
 


---------------------------------------------------------
Marco.Valerio@italtel.it
---------------------------------------------------------



Marco Valerio -- Marco.Valerio@italtel.it
Tuesday, March 11, 1997

Environment:  Windows 95, VC++ 4.2b, Visual Basic 4 32 bit

 
  Hi, 
 
 I call this Function within my DLL (not Extension MFC DLL) that uses
shared
 MFC library
 First I've allocated a CWnd class.
  
 	CreateEx(0,
 		AfxRegisterWndClass(0),
 		"Test Wnd",
 		WS_VISIBLE | WS_BORDER | WS_POPUP,
 		0,0,400,400,	// bounding rectangle,
 		NULL,
 		NULL); //id
 
  If I call this functions within VC++ 4.2 I haven't any problem, but if I
  call from VB 4 I've an assertion error at line 19 file afxwin1.inl
  
  _AFXWIN_INLINE HINSTANCE AFXAPI AfxGetInstanceHandle()
  	{ ASSERT(afxCurrentInstanceHandle != NULL);
  		return afxCurrentInstanceHandle; }
 
 
 Any suggestion ?
 
 Thanks
  
 
 
 ---------------------------------------------------------
 Marco.Valerio@italtel.it
 ---------------------------------------------------------




Become an MFC-L member | Вернуться в корень Архива |