Re: ActiveX DLL and Borland C++ Builder
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Thu, 14 Feb 2008 08:47:08 -0600
"Peter Karlström" <HayRoller@xxxxxxxxxxxxxxxx> wrote in message
news:B0DF1B0C-5EEB-4FB5-A7DC-9046C6A935B1@xxxxxxxxxxxxxxxx
Hi Ralphhimself
Thanks for your quick reply.
Yes, I have tested the DLL in several Visual Studio projects without any
problems.
Everything runs like water using Visual Studio.
I guess I have to tell him to "dig deeper" in his manuals and stuff....
He keeps asking me for a header-file but I guess he have create this
with a separate tool or something.
"He keeps asking me for a header-file" ???
An ActiveX Dll comes with a built-in Type Library. The typelib is THE
"header file". VB does not normally produce an MIDL-generated header.
Normally one doesn't use a 'header' as most C++ IDE/linkers just read the
typelib using a #imports directive. However, it is possible C++ Builder
doesn't support "#Imports". I doubt it, but it has been eons since I've used
Builder.
You might pass this along to him.
Depending on his version of Builder, the normal IDE options Project->Import
ActiveX Dll, or Component->Import ActiveX Component may not work. As IIRC
early builders assumed the older OLE IDL and/or IDispatch intefaces. VB5/6
creates what is called a "Dual Interface" - this allows the component to be
used with either 'early binding' (vtable), or with 'late binding'
(IDispatch). It also uses expanded OLE types. Using these older IDE options
will produce an error complaining about "invalid types" which is a little
misleading.
[Just thought of something - that "VB way of handling strings" error could
be a 'type' complaint.]
I think this was fixed with Builder 3 (but I can't remember). Anyway there
is Borland supplied utility (sorry don't remember the name) that he can run
on the DLL and it will produce the necessary files, proxies, etc. Have him
look around his disks, or install, or go the to Borland Builder website.
hth
-ralph
.
- Follow-Ups:
- Re: ActiveX DLL and Borland C++ Builder
- From: Peter Karlström
- Re: ActiveX DLL and Borland C++ Builder
- References:
- Re: ActiveX DLL and Borland C++ Builder
- From: Ralph
- Re: ActiveX DLL and Borland C++ Builder
- From: Peter Karlström
- Re: ActiveX DLL and Borland C++ Builder
- Prev by Date: Re: ActiveX DLL and Borland C++ Builder
- Next by Date: Re: ActiveX DLL and Borland C++ Builder
- Previous by thread: Re: ActiveX DLL and Borland C++ Builder
- Next by thread: Re: ActiveX DLL and Borland C++ Builder
- Index(es):
Relevant Pages
|