🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #439

Re: Writting a DLL to be used by MFC app.

#439
From: John Grabner
Date: Tue, 15 Apr 2008 10:27
23 lines
1761 bytes
Remy Lebeau (TeamB) wrote:
> "John Grabner" <grabnerj@ihug.co.nz> wrote in message 
> news:48032b14@newsgroups.borland.com...
> 
> 
>>Is it possible to write a VCL DLL that can be used in an MFC app?
> 
> 
> Of course.  You can use the VCL all you want inside the DLL, but just don't 
> expose anything from your exported functions that is Borland-specific.  No 
> __fastcall, no VCL parameters, no VCL return values.  Use only POD (plain 
> old data ) types (int, char*, etc) when you need to exchange data between 
> the DLL and application.
> 
> Gambit 
> 
> 

Thanks for that. Can you give me any pointers on how to set up a 
C++Builder project to do that?  Would a form with no border or
frame be best?

John.
Technical Details
Message-ID: <48048389$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <48032b14@newsgroups.borland.com> <48038ccc@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,815e9d26a11045c3
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 15 Apr 2008 22:27:54 +1200
From: John Grabner <grabnerj@ihug.co.nz>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Writting a DLL to be used by MFC app.
References: <48032b14@newsgroups.borland.com> <48038ccc@newsgroups.borland.com>
In-Reply-To: <48038ccc@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 203.173.129.182
Message-ID: <48048389$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208255369 203.173.129.182 (15 Apr 2008 03:29:29 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mail