BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

functions/members exported in dll

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
Adrian Mercieca
Guest





PostPosted: Mon May 07, 2007 10:59 pm    Post subject: functions/members exported in dll Reply with quote



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





PostPosted: Tue May 08, 2007 2:05 am    Post subject: Re: functions/members exported in dll Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.