qsek Posted December 7, 2012 Share Posted December 7, 2012 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 More sharing options...
JohnOne Posted December 7, 2012 Share Posted December 7, 2012 I imagine you will have to use a dllstruct and pass a pointer to it, to your dll function. 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...
qsek Posted December 8, 2012 Author Share Posted December 8, 2012 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 More sharing options...
trancexx Posted December 8, 2012 Share Posted December 8, 2012 (edited) 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 December 8, 2012 by trancexx ♡♡♡ . eMyvnE 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