Jump to content

How to construct Autoit Arrays in C++


qsek
 Share

Recommended Posts

Lets say i have a huge amount of changing data fields and using autoit to split and process and fill an 2dim array would be way too processor intensive.

Since dll calls can not return an array for the return value i am searching for other possibilities.

What options do i have to preconstruct or fill an initialized autoit array in C++?

How does a 2dim array looks like in the memory?

Teamspeak 3 User Viewer - Quick and functional TS3 Query script, which shows online users.Cached Screenshot Deleter - Deletes older Fraps Screenshots if they exceed a specified limit.Unresolved Topics:Intercept and modify dragdrop text behaviour in scite
Link to comment
Share on other sites

If i understand you correctly i should use a dll struct instead of an array.

But dll structs only have 1 dimension. If i wanted the data to be ready in a 2dim array i would have to itrerate through the whole array to fill it, which i want to avoid.

But anyway, how do you get a pointer to an autoit array?

Teamspeak 3 User Viewer - Quick and functional TS3 Query script, which shows online users.Cached Screenshot Deleter - Deletes older Fraps Screenshots if they exceed a specified limit.Unresolved Topics:Intercept and modify dragdrop text behaviour in scite
Link to comment
Share on other sites

AutoIt array is internal type and can't be referenced outside the language.

However, conversion to (and from) SafeArray is done for COM interface. If you are familiar with COM it wouldn't be hard to do what you want. If not, stick to structs.

Edited by trancexx

♡♡♡

.

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