🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem accessing function in DLL

#8371
From: Anders S. Johansen
Date: Thu, 04 Nov 2004 06:40
25 lines
1720 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote:
>Anders Johansen wrote:
>
>>I am trying to access a function in oleacc.dll using
>>LoadLibrary and GetProcAddress, but for some reason it
>>doesn't work. 

>Another clue to this would be to look in the headers where GetRoleText
>is defined.
> There you would see that it is defined as GetRoleTextA or W,
>depending on the default size of your chars.

Hi Bob,

I did finally get it working. I had actually tried to do as you
suggested before, but to no avail. That turned out to be due to 
me linking the same module to a package, which at times makes BCB 
act a little funny.

Sometimes the only thing you need is a little confidence, that you
are indeed investigating the right approach :)

Thanks to all who responded,
  Anders
Technical Details
Message-ID: <4189dcd9$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4180f707$3@newsgroups.borland.com> <a432o0h5pedjjucakgmcq15r5f4j4e8jss@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4fc3141b3a957dd3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Anders S. Johansen" <home@dduck.dk>
Sender: "Anders S. Johansen" <home@dduck.dk>
Reply-To: "Anders S. Johansen" <home@dduck.dk>
Subject: Re: Problem accessing function in DLL
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 217.157.225.50     
References: <4180f707$3@newsgroups.borland.com> <a432o0h5pedjjucakgmcq15r5f4j4e8jss@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4189dcd9$2@newsgroups.borland.com>
Date: 3 Nov 2004 23:40:09 -0700
X-Trace: newsgroups.borland.com 1099554009 207.105.83.66 (3 Nov 2004 23:40:09 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail