Article View: borland.public.cppbuilder.nativeapi
Article #9377LoadLibrary() weird behaviour
From: Miguel Gimenez
Date: Mon, 19 Jul 2004 17:36
Date: Mon, 19 Jul 2004 17:36
14 lines
1412 bytes
1412 bytes
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.
Which is the correct configuration for a global hooking DLL? C or C++?
Multithreaded or not? VC++ style or Borland's one?
I'm using Windows Me with BCB5 Pro
Thanks in advance
Miguel Gim๏ฟฝnez
Technical Details
Message-ID:
<40fc066a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c17dfc2eb3c7fd7b,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Miguel Gimenez" <nospam@solener.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: LoadLibrary() weird behaviour Date: Mon, 19 Jul 2004 19:36:29 +0200 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 80.26.84.238 Message-ID: <40fc066a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090258538 80.26.84.238 (19 Jul 2004 10:35:38 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail