Article View: borland.public.cppbuilder.nativeapi
Article #8771Re: calling host executable functions/methods from a dll
From: Remy Lebeau (TeamB)
Date: Thu, 23 Sep 2004 22:10
Date: Thu, 23 Sep 2004 22:10
19 lines
1638 bytes
1638 bytes
<Roger Warren> wrote in message news:41534423@newsgroups.borland.com... > is that all I need to do in the host executable to > export FormattedStrToCurr()? No, because you exported the wrong thing. In fact, you did not export the actual class method at all. Nor do I recommend that you export class methods anyway, only standalone functions. > HINSTANCE h = ptrToFrmMainInCallingExecutable->Handle > FormattedStrToCurr(FORMATTEDSTRTOCURR) GetProcAddress(h, > "_FormattedStrToCurr"); GetProcAddress() expects a module handle, not a window handle. They are not the same thing. Gambit
Technical Details
Message-ID:
<415349b9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.cwix.com!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41516f76@newsgroups.borland.com> <4151bc0a$1@newsgroups.borland.com> <41534423@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,61cd17292f50f8cb X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41516f76@newsgroups.borland.com> <4151bc0a$1@newsgroups.borland.com> <41534423@newsgroups.borland.com> Subject: Re: calling host executable functions/methods from a dll Date: Thu, 23 Sep 2004 15:10:14 -0700 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <415349b9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1095977401 68.69.17.41 (23 Sep 2004 15:10:01 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.cwix.com!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail