CharlyFox 0 Posted November 1, 2011 Hi, I am coding in C# and I need some functions of AutoIt3 however my code is intended to be used in any cpu that is in x86 and x64 CPUs, what I want to know is: Which dll should I register in order to not have any issues later? Thanks Share this post Link to post Share on other sites
wraithdu 82 Posted November 1, 2011 (edited) Compile your app as a 32-bit executable and use the 32-bit DLL. If this is not possible due to the nature of your application, ie requiring the app to match the bitness of your target machine, then you'll have to distribute both configurations and register the proper DLL based on the target. Edited November 1, 2011 by wraithdu Share this post Link to post Share on other sites
Richard Robertson 187 Posted November 1, 2011 You should never compile for any CPU when using any kind of platform invoke methods. Only use any CPU when compiling using pure .Net libraries. Share this post Link to post Share on other sites
CharlyFox 0 Posted November 1, 2011 Thank you both, and you are both right, I will change the project to x86 platform thanks. Share this post Link to post Share on other sites