Can a .net application targeted for "Any CPU" use p/invoke calls in multiple environments?
- by Eric
I have a .net application that uses some API calls, for example GetPrivateProfileString. So far it has always run on 32-bit machines.
In order to run on 64-bit machines, must I change the "Platform Target" to "x86"? Or is there a way to let the runtime know which API DLL to invoke depending on the runtime environment?