Article View: borland.public.cppbuilder.nativeapi
Article #11204Re: Loaded DLL function won't work
From: Remy Lebeau (TeamB)
Date: Thu, 19 Feb 2004 18:29
Date: Thu, 19 Feb 2004 18:29
21 lines
1457 bytes
1457 bytes
"peter" <peterna@attglobal.net> wrote in message
news:4034d2ac$1@newsgroups.borland.com...
> it is declared like this:
>
> typedef VOID (*MYPROC)(LPTSTR);
Then it is not declared correctly. It should be more like this instead:
typedef int __stdcall (*MYPROC)(LPTSTR, LPTSTR);
Or:
typedef int __stdcall (*MYPROC)(LPSTR, LPSTR);
The signature of the typedef *must* actually match the real function being
pointed to.
Gambit
Technical Details
Message-ID:
<4034fea3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4033d5c9$1@newsgroups.borland.com> <4033dc64$1@newsgroups.borland.com> <4034d2ac$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5a8f68731742a0dc X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-19 10:40:43 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4033d5c9$1@newsgroups.borland.com> <4033dc64$1@newsgroups.borland.com> <4034d2ac$1@newsgroups.borland.com> Subject: Re: Loaded DLL function won't work Date: Thu, 19 Feb 2004 10:29:18 -0800 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <4034fea3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077214883 67.22.138.253 (19 Feb 2004 10:21:23 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail