Article View: comp.os.ms-windows.programmer.tools.mfc
Article #93Re: using ActiveX in DLL fails
From: Andreas Leitner
Date: Sat, 25 Jul 1998 00:00
Date: Sat, 25 Jul 1998 00:00
20 lines
1558 bytes
1558 bytes
<frank_luo@my-dejanews.com> wrote in message
6pb46r$1hu$1@nnrp1.dejanews.com...
>I produced a dialog in a DLL using VC 5.0 and the dialog has an ActiveX
>control (Calendar Control 8.0) inside. The dialog can not be created by an
>executable created by Delphi 3.0, with error message:
>
>>>>CoCreateInstance of OLE control {8E27c92b.....} failed
>>>>Result code : 0x800401f0
>>>> Is the control is properly registered?
>
>Can anybody give me a solution?
>
>I do not have problem to pop up the dialog with an executable created by VC
>5.0 (with support of Automation AND ActiveX controls).
A call to CoInitialize() in the DLL initialization routine should help.
hope this helps, Andreas
Technical Details
Message-ID:
<35b9d66b.0@news.telekabel.at>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6pb46r$1hu$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1138df,107d6160c07493bf X-Google-Attributes: gid1138df,public X-Google-Thread: 109fba,107d6160c07493bf X-Google-Attributes: gid109fba,public X-Google-Thread: f7033,107d6160c07493bf X-Google-Attributes: gidf7033,public X-Google-Thread: 107d5a,107d6160c07493bf X-Google-Attributes: gid107d5a,public From: "Andreas Leitner" <nozone@sbox.tu-graz.ac.at> Subject: Re: using ActiveX in DLL fails Date: 1998/07/25 Message-ID: <35b9d66b.0@news.telekabel.at> X-Deja-AN: 374790487 References: <6pb46r$1hu$1@nnrp1.dejanews.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0518.4 X-Trace: 25 Jul 1998 14:58:19 +0100, 195.34.149.108 Newsgroups: comp.os.ms-windows.programmer.tools.mfc,borland.public.delphi.activex.controls.using,comp.os.ms-windows.programmer.controls,comp.lang.c++