Click here to Skip to main content
15,912,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaladd-in problem... Pin
Anonymous20-Jun-00 13:02
Anonymous20-Jun-00 13:02 
GeneralRe: add-in problem... Pin
Mike Melnikov4-Aug-00 4:48
Mike Melnikov4-Aug-00 4:48 
GeneralUpload files to server Pin
tl20-Jun-00 13:02
tl20-Jun-00 13:02 
GeneralVariable arguments Pin
RootAir20-Jun-00 8:39
sussRootAir20-Jun-00 8:39 
GeneralRe: Variable arguments Pin
Uwe Keim20-Jun-00 9:09
sitebuilderUwe Keim20-Jun-00 9:09 
GeneralRe: Variable arguments Pin
RootAir20-Jun-00 10:23
sussRootAir20-Jun-00 10:23 
GeneralRe: Variable arguments Pin
Uwe Keim20-Jun-00 10:34
sitebuilderUwe Keim20-Jun-00 10:34 
GeneralActiveX components in Regular DLLs Pin
Sid Price20-Jun-00 7:13
Sid Price20-Jun-00 7:13 
Hello,

I have an application that I need to use some ActiveX components with.
First let me describe the structure of the application and then the
problem we are having.

The application being developed is an add-on or extension for use with
third party applications. It is contained in a regular MFC DLL so that
it can provide the required "C" type calls for the host application.
Because it also has some user interface components it uses a dialog
based MFC structure to privide these. We used a regular DLL rather
than an extension DLL because the the "host" applications could be
written in any language and with any framework, it is an unknown
factor outside of our control. However, we did want to use MFC
internally.

The CWinApp instance in the DLL starts a modal dialog which acts as
kind of toolbar for the product. In the OnInitDialog method of this
dialog we create several other modeless dialogs for status and data
display.

Now to the problem. If we place an ActiveX component onto any of the
dialogs we get assertions and dialogs fail to create. As a example if
the ActiveX components are placed on the main dialog the debug trace
view shows the following text:

CoCreateInstance of OLE control {50548E24-4550-11D4-A9A7-00400516A5AD}
failed.
>>> Result code: 0x800401f0
>>> Is the control is properly registered?
Warning: CreateDlgControls failed during dialog init.

The error is CO_E_FIRST, Moniker enumeration failure. Whatever that
means.

So, could someone please give us a few pointers here. The InitInstance
method of the CWinAp instance in teh DLL has a call to
AfxEnableControlContainer. what more is required.

The component loads into the test conatiner just fine. It is also
visible and appears correctly in the dialog editor.

Any help or pointers much appreciated,
Thanks
Sid

GeneralRe: ActiveX components in Regular DLLs Pin
Blake Miller20-Jun-00 12:41
Blake Miller20-Jun-00 12:41 
GeneralRe: ActiveX components in Regular DLLs Pin
Sid Price20-Jun-00 15:23
Sid Price20-Jun-00 15:23 
GeneralCListCtrl Pin
solex20-Jun-00 6:01
solex20-Jun-00 6:01 
GeneralRe: CListCtrl Pin
Paolo Messina20-Jun-00 7:04
professionalPaolo Messina20-Jun-00 7:04 
GeneralRe: CListCtrl Pin
Mike Dunn20-Jun-00 7:25
Mike Dunn20-Jun-00 7:25 
GeneralRe: CListCtrl Pin
solex20-Jun-00 21:41
solex20-Jun-00 21:41 
GeneralSetting a paper size Pin
Member 355920-Jun-00 5:41
Member 355920-Jun-00 5:41 
GeneralProblems with Get- /Set Capture & Message handling Pin
Karl Klose20-Jun-00 0:12
sussKarl Klose20-Jun-00 0:12 
GeneralRe: Problems with Get- /Set Capture & Message handling Pin
Yimin Guo20-Jun-00 22:04
sussYimin Guo20-Jun-00 22:04 
GeneralThe cursor keys changed + how to change get a edit control to use a return like a tab Pin
Member 135619-Jun-00 23:29
Member 135619-Jun-00 23:29 
GeneralDLL Hell Pin
Mike Puddephat19-Jun-00 23:08
Mike Puddephat19-Jun-00 23:08 
GeneralRe: DLL Hell Pin
Mike Dunn20-Jun-00 7:22
Mike Dunn20-Jun-00 7:22 
GeneralRe: DLL Hell Pin
Mike Puddephat20-Jun-00 23:21
Mike Puddephat20-Jun-00 23:21 
GeneralRe: DLL Hell Pin
Mike Dunn20-Jun-00 23:41
Mike Dunn20-Jun-00 23:41 
GeneralRe: DLL Hell Pin
Mike Puddephat21-Jun-00 2:11
Mike Puddephat21-Jun-00 2:11 
GeneralWindows Leeks Pin
FuMo19-Jun-00 10:25
FuMo19-Jun-00 10:25 
GeneralRe: Windows Leeks Pin
Timo19-Jun-00 20:23
Timo19-Jun-00 20:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.