Dieuz Posted April 19, 2007 Posted April 19, 2007 (edited) Hi, How can I send information to a dll? I want to send this do a dll: $path = @SCRIPTDIR & "\Settings.ini" Edited April 19, 2007 by Dieuz
evilertoaster Posted April 19, 2007 Posted April 19, 2007 (edited) Can you calrify a bit? What do you mean by 'send to a dll'. Do you want to append the files binary with data or send a process with a dll loaded into it some information? Edited April 19, 2007 by evilertoaster
Dieuz Posted April 19, 2007 Author Posted April 19, 2007 (edited) I have a dll (I made it) and I want to send the value of certains variables so it can run properly when I will use DllCall. I want to be able to send information from my script to my dll. Edited April 19, 2007 by Dieuz
evilertoaster Posted April 19, 2007 Posted April 19, 2007 (edited) How do you have your dll set up to receive this incomming data? Edited April 19, 2007 by evilertoaster
Dieuz Posted April 19, 2007 Author Posted April 19, 2007 There's just one function in my dll and my $path variable is set to "". My script will send the correct path to the dll.
evilertoaster Posted April 19, 2007 Posted April 19, 2007 (edited) Perhaps you can use it as an argument of the DllCall() used when callling your dll? DllCall ( "MyDll.dll","int", "MyDllFunc" , "str", $path) This assumes your dll function takes a string as an argument. Edited April 19, 2007 by evilertoaster
Dieuz Posted April 20, 2007 Author Posted April 20, 2007 How can i set it so it will give the value? $path = @SCRIPTDIR & "\Settings.ini"
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