Jump to content

DLL Function for learn


zaini
 Share

Recommended Posts

I like to learn DLL Function..but i dont have any basic about C++.

I only know Autoit function only..

the question is...

How to read dll function?

How to apply it to autoit UDF?

Is there have any idea or website can i refer to...

thanks :mellow:

Link to comment
Share on other sites

I like to learn DLL Function..but i dont have any basic about C++.

I only know Autoit function only..

the question is...

How to read dll function?

How to apply it to autoit UDF?

Is there have any idea or website can i refer to...

thanks :mellow:

Use DLL Export View to get names of functions from DLL, search on MSDN to see the parameters and then is all AutoIt (DllOpen,DllCall,DllClose).

When the words fail... music speaks.

Link to comment
Share on other sites

Dll's are (simplified) collections of compiled functions. To know how to call the functions you need to get information from the author of the dll file. The only thing you can extract directly from the dll file is the names of the functions ( see Export viewer in my sig ).

Most of the udf's on the forum that uses dlls are using dlls from microsoft so it is microsoft we need to get the info from.

Here's an example of microsoft documentation which allows you to do a DllCall():

http://msdn.microsoft.com/en-us/library/ms686298(VS.85).aspx

As you can see it's the Sleep function that is already present in autoit. It is however a good test function.

When writing the DllCall you need to know 4 things, the name of the function, what the function returns, which dll it resides in and what parameters it takes.

As you can see on the msdn page Sleep returns nothing (void), it resides in Kernel32.dll and it takes one parameter of the type "dword".

So the DllCall() look like this:

DllCall("Kernel32.dll","none","Sleep","dword",1000); Sleeps for 1000 ms

Best way to continue learning is to browse through msdn and implement simple functions.

Good luck

Edited by monoceres

Broken link? PM me and I'll send you the file!

Link to comment
Share on other sites

He wants to make a dll function according to his last post. It sounds though like he is wanting to compile AutoIt to a dll, but there's a language issue either way.

Richard Robertson is right...i just want to know a simple example that somebody could attach it here by using autoit langguage to create DLL.. :mellow:

It sound hard but i like to learn it...hehe :(

Link to comment
Share on other sites

You cant make a dll with autoit.

This is something that I've heard (read) few times for the past couple of months. I'm having this feeling that one person wrote that somewhere on the forum and everyone is just repeating that after him\her.

This is absolutely not true!

What you should be saying is that AutoIt script cannot be compiled to dll, since execution of such script is relaying on AutoIt's executable (AutoIt being interpreted language).

Other than that you can make dll with AutoIt with no trouble (at all).

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

This is something that I've heard (read) few times for the past couple of months. I'm having this feeling that one person wrote that somewhere on the forum and everyone is just repeating that after him\her.

This is absolutely not true!

What you should be saying is that AutoIt script cannot be compiled to dll, since execution of such script is relaying on AutoIt's executable (AutoIt being interpreted language).

Other than that you can make dll with AutoIt with no trouble (at all).

Sure, Im just copying what the first person said.

Which is where the whole, "Use the search button" thing comes into play.

The people search, then they use what they found.

So cant really blame us for copying what the original people said.

Or something.

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

Sure, Im just copying what the first person said.

Which is where the whole, "Use the search button" thing comes into play.

The people search, then they use what they found.

So cant really blame us for copying what the original people said.

Or something.

Something.

Thing is that if some fact, even if it's not true (context is very important) when repeated certain number of times becomes true thus changing perspective.

Like the idea that earth is round?!? No way man! Earth is flat.

♡♡♡

.

eMyvnE

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...