home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3600 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: 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
  3. From: jinli@gpu.utcs.utoronto.ca (Jin Tonic Li)
  4. Subject: How to get Windows to load DLLs that are not in PATH, etc.
  5. Message-ID: <By2wC2.1s7@gpu.utcs.utoronto.ca>
  6. Organization: University of Toronto Computing Services
  7. Distribution: na
  8. Date: Sat, 21 Nov 1992 18:21:37 GMT
  9. Lines: 20
  10.  
  11.  
  12. I have some custom DLLs that are in c:\myapp, which is not in the PATH variable.
  13. I want Windows to auto load these DLL(s) for me whenever a function in it(them)
  14. is called(as oppose to explicitly load them myself).
  15.  
  16. However, as I understand it, Windows will only look for DLLs in the current dir,
  17. windows dir, windows system dir and any dir that is on the PATH.  If a user
  18. invokes programs from c:\myapp, everything is fine.  Otherwise, Windows will
  19. complain that it cannot find the DLLs.
  20.  
  21. Is there a way to instruct Windows to look for DLLs in a user-supplied dir?
  22. Any other method to get around this problem?(aside from putting all my custom
  23. DLLs in windows system dir)
  24.  
  25. Thanks in advance,
  26.  
  27. -- 
  28.               Jin Li              >>    Gin & Tonic mix well
  29.    University of Toronto Computing Services  <<
  30. jinli@gpu.utcs.utoronto.ca   uunet!utgpu!jinli>>      No bugs, no bucks
  31.