🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Classpath

#11941
From: Remy Lebeau (TeamB)
Date: Thu, 08 Jan 2004 10:09
17 lines
1578 bytes
"Oliver Young" <none> wrote in message
news:3ffd29ce$1@newsgroups.borland.com...

>     How can I add folder of my app to the system class path,
> so windows can find my dll?

You do you need to do that to begin with.  If your DLL is stored in the same
folder as your application, and all you are doing is specifying a filename
without a path when loading the DLL at run-time (or using the DLL's .lib
file statically at compile-time), then your application's folder will
already be the first place the OS looks for the DLL.  Have a look at the
documentation for the LoadLibrary() function in the Win32 API for the rules
about the OS's search order when it comes to finding libraries.


Gambit
Technical Details
Message-ID: <3ffd2b0d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ffd29ce$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,5e5c0026178b2c8f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-08 02:09:49 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ffd29ce$1@newsgroups.borland.com>
Subject: Re: Classpath
Date: Thu, 8 Jan 2004 02:09:54 -0800
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <3ffd2b0d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1073556237 67.22.138.253 (8 Jan 2004 02:03:57 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail