🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to link a procedure from DLL into EXE code?

#15617
From: Alan Bellingham
Date: Mon, 23 Jun 2003 13:52
15 lines
1406 bytes
"Nitisara" <nitisara@mail.ru> wrote:

>Is there a way to link a procedure from DLL into EXE code?
>How this can be done?

1) Use implib to create an import library for the DLL.
2) Link the resulting library into your EXE.

You will need to make sure that the procedure ('function' in C++) is
exported from the DLL, and that the function is declared compatibly at
both ends, but it isn't difficult.

Alan Bellingham
-- 
alanb@episys.com
Technical Details
Message-ID: <hd1efvkb3oh6si1j5t05shu5ktnpn9rgu3@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ef6eee3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c25cc947ab95860c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-23 07:01:40 PST
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: how to link a procedure from DLL into EXE code?
Date: Mon, 23 Jun 2003 14:52:37 +0100
Reply-To: alanb@episys.com
Message-ID: <hd1efvkb3oh6si1j5t05shu5ktnpn9rgu3@4ax.com>
References: <3ef6eee3$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.129.251.130
X-Trace: newsgroups.borland.com 1056376315 193.129.251.130 (23 Jun 2003 06:51:55 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail