Sign in to follow this  
Followers 0
xonic

function that return a pointer to a string.

2 posts in this topic

Hello,

I call a function in a DLL with DllCall without problem, but this function return a pointer to a string.

How I can get get/read this string when I know her pointer.

Thank you for your help

xonic

Share this post


Link to post
Share on other sites



Create a char - Structure from a pointer, and get the value

$strString = DllStructCreate ( "char[128]" , $yourpointer)

$myString = DllStructGetData ($strString, 1)

but normaly use only "str" or "wstr" instead of "ptr" to get the Data from the API, because every String needs a pointer, and AutoIt now that.

VoSs2o0o


AutoItMacroGenerator on my Homepage (Link 2)

Share this post


Link to post
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
Sign in to follow this  
Followers 0