Jump to content

How could retrieve the data with a pointer?


Chefito
 Share

Recommended Posts

How could retrieve the data with a pointer?

It is to do a algorithm with lists.

Local $str = "int var1;ptr var2"
Local $a1 = DllStructCreate($str)
Local $a2 = DllStructCreate($str)

DllStructSetData($a2, "var1", 200)

DllStructSetData($a1, "var1", 100)
DllStructSetData($a1, "var2", DllStructGetPtr($a2,1))

$pointer=DllStructGetPtr($a2,1)

Very thank you.

Link to comment
Share on other sites

like this?

Func Peek($Ptr)
Return DllStructGetData(DllStructCreate("int", $Ptr), 1)
EndFunc

Chefito from autoit spanish forum?

Edited by Danyfirex
Link to comment
Share on other sites

I've saw some of your answers there.

Contact me I'm Dany There.

un placer ayudarte.

saludos

Edited by Danyfirex
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...