Jump to content
Sign in to follow this  
CharlyFox

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

Recommended Posts

CharlyFox

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

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
Richard Robertson

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.