Jump to content

Question about DllStructSetData and "int[]"


 Share

Recommended Posts

I have a function that is similar to this:

Func _update($buffer)
    Dim $bits = DllStructCreate("int["&UBound($buffer)&"];")
    For $i = 0 To UBound($buffer)-1
        DllStructSetData($bits,1,$buffer[$i],$i+1)
    Next
EndFunc

The $buffer is array of integers. Is there a faster way to fill the $bits structure, instead of using the for..next loop?

:Edit

Sorry, this topic was for the "General Help and Support" forum... my mistake.

But I still need help. Anyone?

Edited by lokster
Link to comment
Share on other sites

I think I am realy screwed... Too bad. I was working on something like framebuffer graphics functions- take an array[WIDTH*HEIGHT] of integers and draw it on the screen with only one function call. Each element of the array represents the color of one pixel. Something like PTC library in FreeBasic.

But it looks like, this is too big task for AutoIt... :rolleyes:

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