Jump to content

A question regarding function arguments


Recommended Posts

Hello voluntary posters :oops:

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

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

×
×
  • Create New...