🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2185

How to get Windows to load DLLs that are not in PATH, etc.

#2185
From: Jin Tonic Li
Date: Sat, 21 Nov 1992 18:21
20 lines
1356 bytes
I have some custom DLLs that are in c:\myapp, which is not in the PATH variable.
I want Windows to auto load these DLL(s) for me whenever a function in it(them)
is called(as oppose to explicitly load them myself).

However, as I understand it, Windows will only look for DLLs in the current dir,
windows dir, windows system dir and any dir that is on the PATH.  If a user
invokes programs from c:\myapp, everything is fine.  Otherwise, Windows will
complain that it cannot find the DLLs.

Is there a way to instruct Windows to look for DLLs in a user-supplied dir?
Any other method to get around this problem?(aside from putting all my custom
DLLs in windows system dir)

Thanks in advance,

-- 
  		    Jin Li		      >>    Gin & Tonic mix well
   University of Toronto Computing Services  <<
jinli@gpu.utcs.utoronto.ca   uunet!utgpu!jinli>>      No bugs, no bucks
Technical Details
Message-ID: <By2wC2.1s7@gpu.utcs.utoronto.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!uwm.edu!cs.utexas.edu!torn!utgpu!jinli

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!uwm.edu!cs.utexas.edu!torn!utgpu!jinli
From: jinli@gpu.utcs.utoronto.ca (Jin Tonic Li)
Subject: How to get Windows to load DLLs that are not in PATH, etc.
Message-ID: <By2wC2.1s7@gpu.utcs.utoronto.ca>
Organization: University of Toronto Computing Services
Distribution: na
Date: Sat, 21 Nov 1992 18:21:37 GMT
Lines: 20