crislivinitup Posted March 18, 2012 Share Posted March 18, 2012 Hello voluntary posters I got a question about autoit that I've been unable to find a straight yes or no answer on in the documentation I've read. Well I've been learning C++ lately and I've found that structures are a big deal and very ways of storing variables. Now I can finally understand why in all the advanced programming in autoit they include so many 'Dllcreatestruct' type commands. My question is that, how is it possible to create functions that pass that data created from the dllcreatestruct. Isn't it good programming technique to create as few global variables as possible? Please correct me if I'm wrong (I haven't been a programmer all that long) I think that the best way to use these are to pass them to and from functions. How do I do that? Also, I was wondering how can I make functions like in C++ that demand certain types of data? i.e. A function that will demand a specific structure type, otherwise will fail to run. Thanks in advance for the knowledge guys. Link to comment Share on other sites More sharing options...
JohnOne Posted March 18, 2012 Share Posted March 18, 2012 (edited) I might be wrong in what you are after here, which I think is to compare DllStructs.It might only be possible in 3.3.9.2 EDIT: beta Edited March 18, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
crislivinitup Posted March 18, 2012 Author Share Posted March 18, 2012 Not exactly, I'm not looking to compare DLLStructs. I just want to know how to pass a DLLstruct to a function. AND I want to know how to have a function that will demand a certain type of struct as a parameter (like a dllcall and in C++). Link to comment Share on other sites More sharing options...
JohnOne Posted March 18, 2012 Share Posted March 18, 2012 I'm not sure You could implement such a function without first being able to compare those structuers. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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