🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: LoadLibrary() weird behaviour

#9234
From: Remy Lebeau (TeamB)
Date: Mon, 19 Jul 2004 18:48
21 lines
1597 bytes
"Miguel Gimenez" <nospam@solener.com> wrote in message
news:40fc066a@newsgroups.borland.com...

>     LoadLibrary("c:\\test.dll")  ... fails when I execute the
> program directly (with the IDE running or not) with error 1157.

1157 = ERROR_DLL_NOT_FOUND
One of the library files needed to run this application cannot be found.

> I created a new DLL from scratch with
> only DLLEntryPoint(), returning 1 always.
> Nothing changed.

What were your EXACT steps to make the DLL?  Did you static link any
dependancies the DLL may have internally?  My guess would be that you did
not, and LoadLibrary() is failing because the DLL is itself failing to find
another file that it needs.


Gambit
Technical Details
Message-ID: <40fc175d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40fc066a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c17dfc2eb3c7fd7b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40fc066a@newsgroups.borland.com>
Subject: Re: LoadLibrary() weird behaviour
Date: Mon, 19 Jul 2004 11:48:51 -0700
Lines: 23
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: <40fc175d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090262877 68.69.17.41 (19 Jul 2004 11:47:57 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail