Sign in to follow this  
Followers 0
CharlyFox

AutoItX3 dll to use in Any Cpu (x64 and x86) with C# Code

4 posts in this topic

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



#2 ·  Posted (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 by wraithdu

Share this post


Link to post
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0