How to get DLL path in BPL??

How to get DLL path in BPL??

abc.DLL are build with package1.bpl. How to get the path of abc.DLL in package1.bpl?

Comments

  1. Use GetModuleName() passing the hInstance of the DLL and you will get the dll name and path.

    ReplyDelete
  2. David Hoyle That's if you have the module handle. GetModuleHandle('abc.dll') does that. And the function you mention is GetModuleFileName.

    ReplyDelete
  3. Thank David Heffernan. Tried to remember off the top of my head as I'm not near any dev tools.

    ReplyDelete

Post a Comment