Article View: borland.public.cppbuilder.nativeapi
Article #8840Re: Export the function from exe.
From: Ed Mulroy [TeamB]
Date: Mon, 06 Sep 2004 21:06
Date: Mon, 06 Sep 2004 21:06
22 lines
1679 bytes
1679 bytes
Then try using LoadLibrary instead of GetModuleHandle and check the
returned value to make sure the call succeeded. If it succeeded then
perform a call to FreeLibrary after you are finished with it.
--------------
HMODULE libhandle = LoadLibrary("ExeName.EXE");
if (lib_handle)
{
/* your code loading function addrdesses and using them */
FreeLibrary(lib_handle);
}
--------------
. Ed
> Igor Tsukanov wrote in message
> news:413c7320$1@newsgroups.borland.com...
>
> Your demo is worked. But in my case I have (for example)
> two exe file and I would like the function belong to one exe
> to call from another one.
Technical Details
Message-ID:
<413cd196@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<413c4566$1@newsgroups.borland.com> <413c6439@newsgroups.borland.com> <413c7320$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,783862a20cd9a6ce X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <413c4566$1@newsgroups.borland.com> <413c6439@newsgroups.borland.com> <413c7320$1@newsgroups.borland.com> Subject: Re: Export the function from exe. Date: Mon, 6 Sep 2004 17:06:50 -0400 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 12.161.27.44 Message-ID: <413cd196@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1094504854 12.161.27.44 (6 Sep 2004 14:07:34 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail