I'm trying to build a 64-bit application using Visual Studio in C++
I need to access Sens.dll
in Windows directory. Since Visual Studio is a 32-bit application, I have to use SysNative instead of System32
#import "C:/Windows/SysNative/Sens.dll"
because of File System Redirection.
If I change the path to C:/Windows/System32/Sens.dll
, Visual Studio cannot access it since it redirects to SysWOW64
while building. To mitigate this I can use SysNative
but then the executable built is a 64-bit application and SysNative
is inaccessible.
Is there any way to solve it?
A better explanation of SysNative is given in File System Redirector