Can a .net application targeted for "Any CPU" use p/invoke calls in multiple environments?
Posted
by Eric
on Stack Overflow
See other posts from Stack Overflow
or by Eric
Published on 2010-04-13T19:10:37Z
Indexed on
2010/04/13
19:12 UTC
Read the original article
Hit count: 239
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?
© Stack Overflow or respective owner