Article View: borland.public.cppbuilder.nativeapi
Article #1060Re: DllRegisterServer
From: mauro
Date: Sat, 17 Nov 2007 11:35
Date: Sat, 17 Nov 2007 11:35
40 lines
2518 bytes
2518 bytes
> What kind of DLL did you actually make? When I generated the project I chose only the options "C++" and multi-thread. I am able to use the DLL from Borland. Really, I am very interested to learn how to export classes from a DLL. In fact, my DLL has a class to export, but I did not know how to do it and so I exported functions to manage the class. 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. I believe it is not a good way to do, but I repeat you that I do not know how to export classes from a DLL. I would like to learn it. > What is the actual problem you are having? VS uses DLLs the same way BCB > does, with the only difference being the format of the .lib file when > using static linking. Otherwise, the use ofthe DLL is pretty much > identical. The problem are because it is the first time we are trying to use a DLL from Borland to VS. I thought it could be easy as when using from Borland to Borland, as you say. My friend, working on VS, is used to register every DLL. He thinks that he needs to register the DLL in order to use it. I believe the point is that he is using C# and so I could not tell him how to translate in C# the way I use in C++ to use the DLL (that is including the .h file with the declarations <extern "C" __declspec(dllimport) __stdcall MyType MyFunc(MyParams);> It is the first time both of us use C#. > Gambit Thank you. Mauro
Technical Details
Message-ID:
<473ed1eb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<473dfb2a$1@newsgroups.borland.com> <473e0261$1@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> Subject: Re: DllRegisterServer Date: Sat, 17 Nov 2007 12:35:06 +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; Response NNTP-Posting-Host: 217.20.0.176 Message-ID: <473ed1eb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1195299307 217.20.0.176 (17 Nov 2007 03:35:07 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail