home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / win32 / 328 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.7 KB  |  48 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!fmsrl7!eccdb1.pms.ford.com!vscarafi
  3. From: vscarafi@eccdb1.pms.ford.com (Vincent F. Scarafino)
  4. Subject: Re: DLL questions
  5. Message-ID: <Bs5wsE.H5@fmsrl7.srl.ford.com>
  6. Originator: news@pms001
  7. Sender: usenet@fmsrl7.srl.ford.com (0000-Admin(0000))
  8. Organization: Ford Motor Co.
  9. References: <1992Jul28.173235.29091@news.mentorg.com>
  10. Date: Wed, 29 Jul 1992 18:02:33 GMT
  11. Lines: 35
  12.  
  13. pbrooks@mentorg.com (Phil Brooks) writes:
  14. > I have a couple of questions concerning dll's on Windows/NT:
  15. > Can one dll call another directly?  i.e. if I have a.dll and b.dll
  16. > and a.dll has a function a_func() which is an imported function in
  17. > b.dll, can b.dll call a_func() and get the function in a.dll?
  18. > How are hierarchies of link time dll's initialized (LibMain)?  If
  19. > I have a hierarchy of dll's that are specified at link time:
  20. >                 main()
  21. >                 /    \
  22. >              aa.dll   bb.dll
  23. >              /    \       \
  24. >            cc.dll   \     dd.dll
  25. >                       \    /
  26. >                        ee.dll
  27. > In what order are the LibMain functions called for this hierarchy?
  28. > -- 
  29. > Phil Brooks
  30.  
  31. My understanding of DLLs doesn't have any hierarchy involved.  If the
  32. DLL is specifyed via a full pathname, then that determines the only
  33. DLL that will be checked for the external reference.  If only the
  34. name of the DLL is used, then DLLs are searched in the order specified
  35. in the PATH statement until the first one that meets the criteria is
  36. found.  I believe this to be the case, but I haven't extensively tested
  37. it.
  38.  
  39. Anyone, please feel free to correct any errors.
  40.  
  41. Vince
  42.