Article View: borland.public.cppbuilder.nativeapi
Article #1073Re: DllRegisterServer
From: mauro
Date: Mon, 19 Nov 2007 11:10
Date: Mon, 19 Nov 2007 11:10
40 lines
2322 bytes
2322 bytes
>> When I generated the project I chose only the options "C++" and >> multi-thread. > > In other words, you use the "File > New > DLL Wizard" option? If so, then > you do ot need to worry about DllRegisterServer() at all. Yes. >> Then, when we used in Borland Delphi, we used a Delphi class >> which uses the exported function, in order to have in Delphi a >> class exactly as that in the DLL. > > For Delphi and C++Builder, it would be better to make a Package instead of > a > DLL. Then you can use the original class directly. In order to support > non-Borland compilers, you will have to continue with the function > approach. We did that, with the class written in Delphi. Really we also wrote a discendent class in Delphi to manage something automatically and we transformed this second class in a Package. Moreover we used that Pascal code compiled in C++ Builder, to obtain an equivalent package. > .NET languages, such as C#, need to use PInvoke to access unmanaged DLLs. > C++Builder does not produce native .NET assemblies. You need Delphi.NET > for > that. Thank you for the information. I believe we shall translate the Delphi code in C#. A last question. If we use DELPHI .net, we will be able to export classes (in any way, COM object, package or everything else)? Thank you.
Technical Details
Message-ID:
<47416f39$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<473dfb2a$1@newsgroups.borland.com> <473e0261$1@newsgroups.borland.com> <473ed1eb$1@newsgroups.borland.com> <4740a31c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,da034d2954595877 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "mauro" <m.russo@uniplan.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <473dfb2a$1@newsgroups.borland.com> <473e0261$1@newsgroups.borland.com> <473ed1eb$1@newsgroups.borland.com> <4740a31c@newsgroups.borland.com> Subject: Re: DllRegisterServer Date: Mon, 19 Nov 2007 12:10:48 +0100 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 217.20.0.176 Message-ID: <47416f39$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1195470649 217.20.0.176 (19 Nov 2007 03:10:49 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail