crouzilles Posted January 19, 2011 Posted January 19, 2011 (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 January 21, 2011 by crouzilles
Richard Robertson Posted January 19, 2011 Posted January 19, 2011 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")
crouzilles Posted January 19, 2011 Author Posted January 19, 2011 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
Zedna Posted January 19, 2011 Posted January 19, 2011 You can embed DLL into EXE and call its functions directly from memory. Look here: Resources UDF ResourcesEx UDF AutoIt Forum Search
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