Luigi Posted July 9, 2014 Posted July 9, 2014 (edited) Hi Forum! I don't know very well DllCall and similar, and I try update a value submited with DllCall. How do this? For example, I have this function: The options "wstr" receive any string. How is possible update/chage the string in "wstr"? Or unload/delete this DllCall and do it again? Thanks, Luigi Func _IrrAddBillboardTextSceneNode($h_Font, $s_Text, $f_XSize, $f_YSize, $f_XPos = 0, $f_YPos = 0, $f_ZPos = 0, $h_Parent = 0, $i_TopRGBA = 0xFFFFFFFF, $i_BottomRGBA = 0xFFFFFFFF) Local $aResult $aResult = DllCall($_irrDll, "ptr:cdecl", "IrrAddBillboardTextSceneNode", "ptr", $h_Font, "wstr", $s_Text, _ "float", $f_XSize, "float", $f_YSize, "float", $f_XPos, "float", $f_YPos, "float", $f_ZPos, _ "ptr", $h_Parent, "uint", $i_TopRGBA, "uint", $i_BottomRGBA) If @error Or Not $aResult[0] Then Return SetError(1, 0, False) Return SetError(0, 0, $aResult[0]) EndFunc ;==>_IrrAddBillboardTextSceneNode Edited October 19, 2019 by Luigi Visit my repository
funkey Posted July 9, 2014 Posted July 9, 2014 If I understand your question right, then you have to use 'wstr*' instead of 'wstr' and the new string value is received in $aResult[3]. Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning.
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