Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by John Grabner
Mon, 14 Apr 2008 09:59
Writting a DLL to be used by MFC app.
Author: John Grabner
Date: Mon, 14 Apr 2008 09:59
Date: Mon, 14 Apr 2008 09:59
6 lines
1180 bytes
1180 bytes
Is it possible to write a VCL DLL that can be used in an MFC app? 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. John.
Re: Writting a DLL to be used by MFC app.
Author: Remy Lebeau (TeamB)
Date: Mon, 14 Apr 2008 16:56
Date: Mon, 14 Apr 2008 16:56
21 lines
1743 bytes
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
Re: Writting a DLL to be used by MFC app.
Author: John Grabner
Date: Tue, 15 Apr 2008 10:27
Date: Tue, 15 Apr 2008 10:27
23 lines
1761 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads