I want to create a DLL for other programmers, and make it friendly enough so that people can rename my DLL without causing any hiccups.
The only problem is that because my DLL needs to do a CRC check on itself first, it needs to know the full path location and filename of itself
Peter Lameijn kindly posted the following example, but it assumes that you know the actual filename of your DLL - I need to find the full path of my DLL when it is loaded regardless of what the filename is. Can anybody help?
------------------
The only problem is that because my DLL needs to do a CRC check on itself first, it needs to know the full path location and filename of itself
Peter Lameijn kindly posted the following example, but it assumes that you know the actual filename of your DLL - I need to find the full path of my DLL when it is loaded regardless of what the filename is. Can anybody help?
Code:
Function ReturnPath () Export As String Dim ZString As Asciiz * 256 GetModuleFileName GetModuleHandle("mydll.dll"), ZString,SizeOf (ZString) Function = ZString End Function
------------------
Comment