crouzilles Posted January 19, 2011 Share 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 Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 19, 2011 Share 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") Link to comment Share on other sites More sharing options...
crouzilles Posted January 19, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
Zedna Posted January 19, 2011 Share 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 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