Sign in to follow this  
Followers 0
crouzilles

[SOLVED]Compile to exe with 3rd party DLLs

4 posts in this topic

#1 ·  Posted (edited)

Hi all.

Is it possible to compile a .au3 script which uses a DLL and have the resulting exe file contain the DLL or do I have to use the FileInstall call which if I understand this correctly, will include the dll inside the exe but will make a copy of it when the exe is ran and then use it?

Thank you

Crouzilles

Edited by crouzilles

Share this post


Link to post
Share on other sites



You need to FileInstall it. A safe place to put it would be the @TempDir directory.

FileInstall(".\mydll.dll", @TempDir & "\mydll.dll", 1)
Dim $handle = DllOpen(@TempDir & "\mydll.dll")

Share this post


Link to post
Share on other sites

You need to FileInstall it. A safe place to put it would be the @TempDir directory.

FileInstall(".\mydll.dll", @TempDir & "\mydll.dll", 1)
Dim $handle = DllOpen(@TempDir & "\mydll.dll")

Thanks Richard. The extra info regarding the @TempDir is very much appreciated.

Regards

Crouzilles

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