Hi,
I want to load an ActiveX DLL that was created in VB. Can
we load it using LoadLibrary? Is it sufficient to invoke
simply "LoadLibrary " or Are there any sequence of steps
to be followed?
Thanks in advance.
Sreekanth.

Re: How to load Activex DLL??? by Carl

Carl
Wed Jul 30 09:09:54 CDT 2003

Sreekanth wrote:
> Hi,
> I want to load an ActiveX DLL that was created in VB. Can
> we load it using LoadLibrary? Is it sufficient to invoke
> simply "LoadLibrary " or Are there any sequence of steps
> to be followed?

ActiveX DLLs (and all VB DLLs) are COM modules - you load them using COM
functions.

For a VB DLL, which always has a complete type library included, the easiest
way is to use the #import facility of VC++. Look up the #import directive
in the VC++ help, and do some reading on COM programming in general (you'll
need to call CoInitialize, and you'll need to understand COM apartments and
reference counting).

-cd



Re: How to load Activex DLL??? by Thorsten

Thorsten
Wed Aug 06 07:44:03 CDT 2003

Hi

I have a link concerning this problem.
http://www.codeproject.com/dll/vbactivexwithvc.asp

"Sreekanth" <Sreekanth@yahoo.com> schrieb im Newsbeitrag
news:09f301c35689$76ea4a00$a501280a@phx.gbl...
> Hi,
> I want to load an ActiveX DLL that was created in VB. Can
> we load it using LoadLibrary? Is it sufficient to invoke
> simply "LoadLibrary " or Are there any sequence of steps
> to be followed?
> Thanks in advance.
> Sreekanth.