Article View: borland.public.cppbuilder.nativeapi
Article #11185Re: Loaded DLL function won't work
From: peter
Date: Thu, 19 Feb 2004 15:13
Date: Thu, 19 Feb 2004 15:13
21 lines
1706 bytes
1706 bytes
"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote: > >"peter" <peterna@attglobal.net> wrote in message >news:4033d5c9$1@newsgroups.borland.com... > >> Proc = (MYPROC) GetProcAddress(Lib, "SITE"); > >What is MYPROC declared as exactly? Chances are, it is not declared >correctly. it is declared like this: typedef VOID (*MYPROC)(LPTSTR); I actually copied this code from the MSDN site because it fit the context. I wanted to see if I could at least get it running by using the code they have in their example. Here is the page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/using_run_time_dynamic_linking.asp I just wanted to understand how it worked, but even with that example code I couldn't get my function to link properly.
Technical Details
Message-ID:
<4034d2ac$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4033d5c9$1@newsgroups.borland.com> <4033dc64$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 07:19:54 PST From: "peter" <peterna@attglobal.net> Sender: "peter" <peterna@attglobal.net> Reply-To: "peter" <peterna@attglobal.net> Subject: Re: Loaded DLL function won't work Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 66.88.112.2 References: <4033d5c9$1@newsgroups.borland.com> <4033dc64$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4034d2ac$1@newsgroups.borland.com> Date: 19 Feb 2004 07:13:48 -0800 X-Trace: newsgroups.borland.com 1077203628 207.105.83.66 (19 Feb 2004 07:13:48 -0800) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail