LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

dll directory

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.

 

Best Regards
Boris
0 Kudos
Message 1 of 2
(2,911 Views)

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

0 Kudos
Message 2 of 2
(2,905 Views)