 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Adrian Mercieca Guest
|
Posted: Mon May 07, 2007 10:59 pm Post subject: functions/members exported in dll |
|
|
Hi,
I've created a dll with BDS 2006 (C++) which uses vcl.
I've noticed that the compiler/linker is generating Initialize and Finalize
exports for each class that I have in the dll (e.g.
@@MyClassName@Initialize).
I have no intention in exporting the classes themselves from the dll; the
dll's functionality will be export via __declspec(dllexport) extern "C"
__stdcall functions so that the dll can be used from other languages like
VB, Visual C++ etc. The classes within the dll are only there to implement
the internal functionality.
Guess there must be some compiler/linker options to disable the exporting of
these functions.
Would greatly appreciate if anyone could let me know what these might be.
Tks - Adrian. |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue May 08, 2007 2:05 am Post subject: Re: functions/members exported in dll |
|
|
"Adrian Mercieca" <amercieca@rem-gmail.com> wrote in message
news:463f68f6$1 (AT) newsgroups (DOT) borland.com...
| Quote: | I've created a dll with BDS 2006 (C++) which uses vcl.
I've noticed that the compiler/linker is generating Initialize
and Finalize exports for each class that I have in the dll (e.g.
@@MyClassName@Initialize).
|
Initialize() and Finalize() are not class methods. They are unit
functions instead. They are the startup/shutdown functions for each
source unit that the VCL calls when the library is loaded/unloaded.
| Quote: | Guess there must be some compiler/linker options to disable the
exporting of these functions.
|
No. They are required functions when using the VCL, especially if you
created a Package instead of a raw DLL, and/or if you included .pas
files into your project.
Gambit |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|