Sign in to follow this  
Followers 0
tnek

How do dll's work?

7 posts in this topic

Noob here. I come from an old mainframe environment and I don't understand what I am supposed to do with a dll. I have been searching the forums - where do I put the dll? does it need to be registered (and how)? Most of all - I think I need a good link explaining how they work in autoit.

Share this post


Link to post
Share on other sites



Where they have to be and how you use them is entirely dependent on a particular dll.

You would need to look in the documentation for it, however there is an example for

use in the helpfile for DllCall()

I am trying to incorporate Martin's Serial Port /COM Port UDF into a script on a Win7 machine to replace some functionality on our legacy system.

Share this post


Link to post
Share on other sites

I would imagine all the functions are covered in martins UDF.

I dll file is just executable code in the form of a library (I think the one the script uses is written in C/C++)

You pass the information the library function needs into it with dllcall function and the function you called in the dll does the work, and optionally returns a parameter in index 0 of the resulting array.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

I am trying to incorporate Martin's Serial Port /COM Port UDF into a script on a Win7 machine to replace some functionality on our legacy system.

The dll doesn't need to be registered. If it isn't saved in the csript directory you can save it wherever you want and use the function _CommSetDllPath.

After that you don't ned to worry about how to use the dll because that is all dealt with by the udf.

The example I supply is enough to get people started usually, though I'm forever telling myself I must write a better one, but at the moment it isn't isn't going to happen.

If you have particular questions about the udf or dll then it might be better to post them in the thread for the UDF in example scripts.

If you recently downloaded from the link there then you might have got a faulty UDF as I had a typo in V2.88. Latest (V2.89) was uploaded a few minutes ago to correct that.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

I dropped the dll into c:Windows and used _CommSetDllPath. It is working now. Thanks for your patience.

Share this post


Link to post
Share on other sites

an old friend said to me, a dll is like the fridge when your making a toast.

you have the bread and the toaster ready, but you have to call into the fridge to get the butter


Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

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  
Followers 0