🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Import functions from gll by index.

#17412
From: Remy Lebeau (TeamB)
Date: Wed, 26 Mar 2003 19:10
16 lines
1399 bytes
"Mariusz Grecki" <grecki@dmcs.p.lodz.pl> wrote in message
news:3e8165eb@newsgroups.borland.com...

> Using the name it is possible but by index
> GetProcAddress fails returning NULL.
> What I am doing wrong?

You should be using MAKEINTRESOURECE, not LPSTR.  By using LPSTR, you're
passing the wrong value to GetProcAddress(), whereas MAKEINTRESOURECE
ensures the value is formatted correctly:

    BeepB = GetProcAddress(hlk32, MAKEINTRESOURCE(10));


Gambit
Technical Details
Message-ID: <3e81f8e3$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e8165eb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,3166b65da596fd46
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-26 21:04:55 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e8165eb@newsgroups.borland.com>
Subject: Re: Import functions from gll by index.
Date: Wed, 26 Mar 2003 11:10:45 -0800
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e81f8e3$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048705251 207.175.226.26 (26 Mar 2003 11:00:51 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail