🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: LoadLibrary() weird behaviour

#9378
From: Pavel Vozenilek
Date: Mon, 19 Jul 2004 17:56
18 lines
1516 bytes
"Miguel Gimenez" wrote:

> I have created a DLL for global hooking purposes, but I have a problem:
>
>     LoadLibrary("c:\\test.dll")  loads the DLL correctly when the program
is
> executed from the IDE, fails when I execute the program directly (with the
> IDE running or not) with error 1157. I created a new DLL from scratch with
> only DLLEntryPoint(), returning 1 always. Nothing changed.
>
Error 1157 is "cannot find the file specified". Maybe your DLL depends on
other ones not available on searching path from outside IDE.

Try to check away dynamic linking of runtime libraries in
Project | Options | Linker | Use Dynamic RTL.

/Pavel
Technical Details
Message-ID: <40fc0b5a@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
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: "Pavel Vozenilek" <pavel_vozenilek@yahoo.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40fc066a@newsgroups.borland.com>
Subject: Re: LoadLibrary() weird behaviour
Date: Mon, 19 Jul 2004 19:56:39 +0200
Lines: 20
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: 83.148.62.116
Message-ID: <40fc0b5a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090259802 83.148.62.116 (19 Jul 2004 10:56:42 -0700)
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