🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#436
From: Remy Lebeau (TeamB)
Date: Mon, 14 Apr 2008 16:56
21 lines
1743 bytes
"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.

> I have a window that is used to display an embedded app in an
> MFC style application. The MFC application loads a DLL and
> then the DLL displays what it needs to in a window.

The VCL allows its controls to appear in non-VCL parent windows.  That is 
what the TWinControl::ParentWindow property is for.


Gambit 
Technical Details
Message-ID: <48038ccc@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <48032b14@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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <48032b14@newsgroups.borland.com>
Subject: Re: Writting a DLL to be used by MFC app.
Date: Mon, 14 Apr 2008 09:56:33 -0700
Lines: 23
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <48038ccc@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208192204 207.178.157.90 (14 Apr 2008 09:56:44 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail