Re: ActiveX DLL and Borland C++ Builder

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Peter Karlström" <HayRoller@xxxxxxxxxxxxxxxx> wrote in message
news:B0DF1B0C-5EEB-4FB5-A7DC-9046C6A935B1@xxxxxxxxxxxxxxxx
Hi Ralph

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
himself
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



.



Relevant Pages

  • Re: Creating a user DLL in VC++
    ... I looked at features like the 'characteristics' in the main header and 'DLL ... If it is a DLL you have built, you would have to show things like your linker parameters ... what produced these two dumps) might also help. ... OPTIONAL HEADER VALUES ...
    (microsoft.public.vc.mfc)
  • Re: ActiveX DLL and Borland C++ Builder
    ... VB does not normally produce an MIDL-generated header. ... it is possible C++ Builder ... ActiveX Dll, or Component->Import ActiveX Component may not work. ... is Borland supplied utility that he can run ...
    (microsoft.public.vb.com)
  • Re: Creating a user DLL in VC++
    ... As far as I can tell, there is nothing in this DLL that marks it as "system" DLL. ... I looked at features like the 'characteristics' in the main header and 'DLL ... what produced these two dumps) might also help. ... OPTIONAL HEADER VALUES ...
    (microsoft.public.vc.mfc)
  • Re: dll load address
    ... I'm pretty sure Windows CE doesn't load the PE header into memory like ... a DLL loads at the same address in all processes. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Resource for newbie Matlab Builder for COM and ASP .Net programming
    ... Add your dll as a reference in your project. ... xxxxx.xxxxclass (i.e. your dll with it's class declaration). ... Private myXXX as IRMS05.IRMS05class ... > I am new to Builder COM and ASP .NET and need to write a web ...
    (comp.soft-sys.matlab)