CharlyFox Posted November 1, 2011 Share 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 Link to comment Share on other sites More sharing options...
wraithdu Posted November 1, 2011 Share 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 Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 1, 2011 Share 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. Link to comment Share on other sites More sharing options...
CharlyFox Posted November 1, 2011 Author Share Posted November 1, 2011 Thank you both, and you are both right, I will change the project to x86 platform thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now