🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Odd LoadLibrary Failure

#9021
From: Michael Lueck
Date: Tue, 17 Aug 2004 22:07
15 lines
1479 bytes
I have the following line of code...

HMODULE Dll = LoadLibrary("SHELL32.DLL");

and Dll was getting set, thus code continued and tried to use the handle, and failed. So I added a GetLastError call after this line and discovered

error 126: The specified module could not be found.

I must be missing something in Windows 101 here. SHELL32.DLL is in System32, that's in the path... ??? Suggestions please.

-- 
Michael Lueck
Lueck Data Systems

Remove the upper case letters NOSPAM to contact me directly.
Technical Details
Message-ID: <41228167$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8d61921d2e5eb0c4,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 17 Aug 2004 18:07:18 -0400
From: Michael Lueck <NmlueckO@SlueckPdataAsystemsM.com>
Reply-To:  NmlueckO@SlueckPdataAsystemsM.com
Organization: Lueck Data Systems
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Odd LoadLibrary Failure
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.247.116.250
Message-ID: <41228167$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092780391 24.247.116.250 (17 Aug 2004 15:06:31 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail