10-12-2011 03:38 PM
Hy.
I have a question about dll directory.
I created application that use dll (the dll made by me) and i use it implicitly.
In order the application to work properly i can place the dll in [system32] directory under [windows] or in current (Executable) directory or in both.
In my situation the dll can be located in one of the above two folders, without my knowledge. How can i programaticly detect from with directory dll loaded?
Thank you.
Boris.
10-12-2011 03:46 PM
Assuming that you want to know this path from within the dll. You can use GetModuleFileName (http://msdn.microsoft.com/en-us/library/windows/desktop/ms683197%28v=vs.85%29.aspx) and GetModuleHandle (http://msdn.microsoft.com/en-us/library/windows/desktop/ms683199%28v=VS.85%29.aspx). Otherwise you'd have to call this from LabVIEW itself using the call library function node.
Matt