🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.mfc
Article #94

Re: using ActiveX in DLL fails

#94
From: Niki Estner
Date: Sat, 25 Jul 1998 00:00
24 lines
1757 bytes

frank_luo@my-dejanews.com schrieb im Beitrag
<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?

Maybe you just didn't initialize COM [CoInitialize(...)].
I never had problems creating controls within controls from DLL's, pure SDK
programs (written in plain C) or console programs.
It should work from Delphi, too.
> 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).
Then MFC initializes COM itself.
	Niki Estner
Technical Details
Message-ID: <01bdb7ce$431c0e20$0d5a61c2@nikiestn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: 107d5a,107d6160c07493bf
X-Google-Attributes: gid107d5a,public
X-Google-Thread: 109fba,107d6160c07493bf
X-Google-Attributes: gid109fba,public
X-Google-Thread: f7033,107d6160c07493bf
X-Google-Attributes: gidf7033,public
From: "Niki Estner" <niki.estner@cube.net>
Subject: Re: using ActiveX in DLL fails
Date: 1998/07/25
Message-ID: <01bdb7ce$431c0e20$0d5a61c2@nikiestn>
X-Deja-AN: 374793225
Content-Transfer-Encoding: 8bit
References: <6pb46r$1hu$1@nnrp1.dejanews.com>
Content-Type: text/plain; charset=ISO-8859-1
Organization: CUBENet Munich
Mime-Version: 1.0
Newsgroups: comp.os.ms-windows.programmer.tools.mfc,borland.public.delphi.activex.controls.using,comp.os.ms-windows.programmer.controls,comp.lang.c++