Article View: borland.public.cppbuilder.nativeapi
Article #12130Re: Adding new functionality to your BCB\KylixC++ applications without changing its main code.
From: Andrue Cope
Date: Mon, 22 Dec 2003 11:44
Date: Mon, 22 Dec 2003 11:44
25 lines
2447 bytes
2447 bytes
, > Is there any sample code showing how to add new functions to your > BCB/KylixC++ apllication without changing its main code but adding new > plugin modules to application directory ? > lol, I'm doing this right now. AFAIK you have to develop your own plugin mechanism/API. If you know how to develop and use DLLs then it's the same mechanism except that you code your application to look for multiple DLLs to import functions from. If you've only ever used IMPLIB before now (coward <g>) then it's time you looked at LoadLibrary/FreeLibrary and GetProcAddress. I can't post any examples because what I'm working on is company confidential but I'm not giving much away if I say that I have a std::vector of structures that contain function pointers that are populated using GetProcAddress() As for finding the DLLs we're using a list in the Registry but you could use FindFirst/Next/Close instead. -- Andrue Cope [Bicester, UK]
Technical Details
Message-ID:
<VA.000020b4.00a35143@email.address.sorry>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fe6cdce@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 106fd3,51f3779f41c7ddd7 X-Google-Attributes: gid106fd3,public X-Google-Thread: 10cc67,51f3779f41c7ddd7 X-Google-Attributes: gid10cc67,public X-Google-Thread: f7d3d,51f3779f41c7ddd7 X-Google-Attributes: gidf7d3d,public X-Google-Thread: 10e8a1,51f3779f41c7ddd7 X-Google-Attributes: gid10e8a1,public X-Google-Thread: 102541,51f3779f41c7ddd7 X-Google-Attributes: gid102541,public X-Google-ArrivalTime: 2003-12-22 04:09:26 PST Date: Mon, 22 Dec 2003 11:44:10 GMT Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.cppbuilder.students,borland.public.cppbuilder.thirdpartytools,borland.public.kylix.students,borland.public.kylix.thirdpartytools Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va Message-ID: <VA.000020b4.00a35143@email.address.sorry> Subject: Re: Adding new functionality to your BCB\KylixC++ applications without changing its main code. From: Andrue Cope <not.a.valid@email.address.sorry> Reply-To: not.a.valid@email.address.sorry References: <3fe6cdce@newsgroups.borland.com> NNTP-Posting-Host: 217.207.223.34 X-Trace: newsgroups.borland.com 1072093466 217.207.223.34 (22 Dec 2003 03:44:26 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail