Article View: borland.public.cppbuilder.nativeapi
Article #3622Re: __declspec(dllimport) in bpl
From: Dmitry Konnov
Date: Tue, 23 May 2006 10:25
Date: Tue, 23 May 2006 10:25
23 lines
1756 bytes
1756 bytes
Remy > 1) declare the functions as __declspec(export) in the application, and then > have the package obtain them via LoadLibrary() and GetProcAddress() at > runtime. Even though it is not a DLL, an application executable can > actually be loaded via LoadLibrary(), and will have a suitable exports table > for GetProcAddress() to find. > > 2) have the package export a function that the application can call to pass > its function pointers to the package programmably. This is the preferred > way to share functions from an application to a DLL. For example: That is fine. I did not know that LoadLibrary can be used for exe. Is that possible to export VCL classes from out of exe to dll/bpl by one of this method? Dmitry
Technical Details
Message-ID:
<4472ea32$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<447171ab@newsgroups.borland.com> <4471f45e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a1cb33bc02ad1dec X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Dmitry Konnov" <dmitry@weblinedesign.biz> From: "Dmitry Konnov" <dmitry@weblinedesign.biz> Newsgroups: borland.public.cppbuilder.nativeapi References: <447171ab@newsgroups.borland.com> <4471f45e$1@newsgroups.borland.com> Subject: Re: __declspec(dllimport) in bpl Date: Tue, 23 May 2006 14:25:44 +0400 Lines: 25 Organization: weblinedesign X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 212.58.203.114 Message-ID: <4472ea32$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1148381746 212.58.203.114 (23 May 2006 03:55:46 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail