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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!monet.uwaterloo.ca!mehran
  3. From: mehran@monet.uwaterloo.ca (Mehran Farimani)
  4. Subject: Re: Faking re-entrancy with second copy of DLL?
  5. Message-ID: <Bxt5vv.Bs7@watserv1.uwaterloo.ca>
  6. Keywords: DLL REENTRANT
  7. Sender: news@watserv1.uwaterloo.ca
  8. Organization: University of Waterloo
  9. References: <1992Nov14.093916.1050@netcom.com> <1992Nov15.021203.12280@netcom.com>
  10. Date: Mon, 16 Nov 1992 12:11:55 GMT
  11. Lines: 32
  12.  
  13. In article <1992Nov15.021203.12280@netcom.com> steven@netcom.com (Steven Nelson) writes:
  14. >In article <1992Nov14.093916.1050@netcom.com> mbk@netcom.com (Miles Kehoe) writes:
  15. >>
  16. >>If you rename X.DLL to Y.DLL, and tell your program to
  17. >>access Y.DLL instead of X.DLL, is anything else going
  18. >>to bite you? It *looks* like 'x' is stored in X.DLL
  19. >>and simply renaming the DLL file does NOT do the
  20. >>complete trick. 
  21. >>
  22. >>Suppose now that you had a copy of the DLL source; can
  23. >>you simply rename and relink it?
  24. >>
  25. >>I know it's wierd.... just trying to fake it!
  26. >>
  27. >>Miles
  28. >>
  29. >
  30. >You will need to change the LIBRARY statement in the  .DEF file
  31. >and relink the application that uses the DLL with this new library. 
  32. >This is the name used by Windows to load the appropriate DLL.
  33. >
  34. >Steven Nelson
  35. >steven@netcom.com 
  36.  
  37. I'm not sure if that's quite right. My experience has been that Windows
  38. looks for a DLL based on its file name. There is no need for recompiling
  39. the library to rename it ...
  40.  
  41. Regards,
  42.  
  43. --Mehran
  44.  
  45.