Jump to content
Sign in to follow this  
Dieuz

Send infos to a dll

Recommended Posts

Dieuz

Hi,

How can I send information to a dll?

I want to send this do a dll:

$path = @SCRIPTDIR & "\Settings.ini"
Edited by Dieuz

Share this post


Link to post
Share on other sites
evilertoaster

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 by evilertoaster

Share this post


Link to post
Share on other sites
Dieuz

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 by Dieuz

Share this post


Link to post
Share on other sites
evilertoaster

How do you have your dll set up to receive this incomming data?

Edited by evilertoaster

Share this post


Link to post
Share on other sites
Dieuz

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.

Share this post


Link to post
Share on other sites
evilertoaster

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 by evilertoaster

Share this post


Link to post
Share on other sites
Dieuz

How can i set it so it will give the value?

$path = @SCRIPTDIR & "\Settings.ini"

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  

×