Create ocx in Dll(Regular Dll using Shared MFC Dll) 
Author Message
 Create ocx in Dll(Regular Dll using Shared MFC Dll)

I have a function that looks like the following.
Following is export function in Regular Dll using shared MFC Dll.

extern "C" void WINAPI Test()
{
 AFX_MANAGE_STATE(AfxGetStaticModuleState());

 AfxEnableControlContainer();
 CTestDialog dlg;
 dlg.DoModal();

Quote:
}

And 'CTestDialog' Contains OCX(like WebBrowser Control...)
Surely, OCX is registered.

Problem is Creation Failure with Following Message.

CoCreateInstance of OLE control {8856F961-340A-11D0-A96B-00C04FD705A2}
failed.

Quote:
>>> Result code: 0x800401f0
>>> Is the control is properly registered?

Warning: CreateDlgControls failed during dialog init.
Warning: Dialog creation failed!

OOOOhhh~
Does anybody know ???

pallas. (DaeHee Park)



Mon, 23 Apr 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Create ocx in Dll(regular Dll using shared MFC Dll)

2. Create ocx in Dll(Regular Dll using Shared MFC Dll)

3. Displaying a dialog box in a regular DLL using shared MFC DLL

4. Displaying a dialog box in a regular DLL using shared MFC DLL

5. Regular MFC Shared DLL Problem

6. Regular MFC Shared DLL Problem

7. Regular DLL with MFC SHARED

8. Using an extension DLL from a regular DLL

9. Regular DLL -VS- MFC Extension DLL and exporting functions

10. Using an extension DLL from a regular DLL

11. Cleanup of explicit loaded DLL's in regular MFC DLL

12. Using Extension DLL Resource in a Regular DLL

 

 
Powered by phpBB® Forum Software