Article View: microsoft.public.vc.activex.templatelib
Article #1Exporting ActiveX functions from VC++ to Delphi
From: Johan Slottner
Date: Fri, 09 Nov 2001 13:02
Date: Fri, 09 Nov 2001 13:02
22 lines
1708 bytes
1708 bytes
I have an application exporting two functions, each returning an
interface based on IUnknown. The application is written in Borland
C++, and the functions are executed from a Delphi application. Now
there is a need to port the application to a Visual C++ MFC ActiveX
application. How to write these functions so they can still be
executed from the same Delphi application?
In the application, the definitions of the functions looks as follows
(C++ Builder)
extern "C"
{
_di_IUnknown __stdcall __declspec(dllexport) GetOneInterface()
{
return (IOneInterface*) &g_InterfacesImplementer;
}
_di_IUnknown __stdcall __declspec(dllexport) GetAnotherInterface()
{
return (IAnotherInterface*) &g_InterfacesImplementer;
}
}
Technical Details
Message-ID:
<30569f48.0111090502.34b2c729@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 105ce5,4ffd7fdbf8ab2a64,start X-Google-Attributes: gid105ce5,public X-Google-Thread: 1084ed,4ffd7fdbf8ab2a64,start X-Google-Attributes: gid1084ed,public X-Google-ArrivalTime: 2001-11-09 05:02:45 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: johan@pcpal.se (Johan Slottner) Newsgroups: microsoft.public.vc.activex.templatelib,borland.public.cppbuilder.ms_compatibility Subject: Exporting ActiveX functions from VC++ to Delphi Date: 9 Nov 2001 05:02:44 -0800 Organization: http://groups.google.com/ Lines: 22 Message-ID: <30569f48.0111090502.34b2c729@posting.google.com> NNTP-Posting-Host: 194.236.207.158 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1005310965 18083 127.0.0.1 (9 Nov 2001 13:02:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 9 Nov 2001 13:02:45 GMT