Jump to content

Creating DLL


Recommended Posts

There is some problem - I want to create my DLL with math functions inside, and to call some "*.dll" from script using Dllcall or pluginopen. My questions to г is

- How to write DLL, using AutoIT ???

- Is it real to write any script , compile and rename to DLL ??? ( only Func-Endfunc of math functions in script)....

I dont use any programm-languages :) and want to create my Lib to use in my scripts. I know about #include directive - i need a portable DLL file

May be, anybody know who can explain me solution of my idea.

(russioned-broaken english )))

Link to comment
Share on other sites

Wrong section ?

Anyway, you can't create a dll with autoit. (and renaming stuff doesn't help lol !)

You could compile some scripts with your functions which you can call with some parameters, and then check the returns. You could also create one compiled script which does all your functions and run it like for example :

mainscript.exe /function_number /parameter1 /parameter2

and check its return.

Link to comment
Share on other sites

oh!

thanks!

I inderstand what operator

$var=run("script.exe /number /value1 /value2") can run from BAT file or command Line ???

$var will be the value of function ?

then another question -

mainscript.exe /function_number /parameter1 /parameter2 <= number function in script ???

Thanks Again!

Link to comment
Share on other sites

I made this quick, there are probably a lot better ways xD

If you decide to work with this don't forget adding error checking and all that.

"dll"

call($CmdLine[1])

Func _MsgBox()
MsgBox($CmdLine[2],$CmdLine[3],$CmdLine[4]) 
EndFunc

example

_call('test.exe', '_MsgBox', 4,  'yes?', 'text')

Func _call($sProg, $sFunc, $p1 = "", $p2 = "", $p3 = "") ; lol
ShellExecute($sProg, $sFunc&' '&$p1&' '&$p2&' '&$p3)
EndFunc
Link to comment
Share on other sites

I understood the little part of your code xD

CALL can not by use ByRef, and var $CMDline is What ???

SHELLEXECUTE dont return the value of my func, only 1 if all right.

PLEASE DONT USE DIFFICULT WORD - MY ENGLISH IS RUSSIAN xD .

rewriting my question :

I want to write my DLL or analogical file with mathFunctions, using Autoit, and to get the value of func in program from this external file.....so....

How to get this values???

Edited by White76
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...