Megadime Posted October 8, 2009 Posted October 8, 2009 I'm trying to send strings via PostMessage from AutoIt to C++. The way I understand it this is possible by using string pointers and handing them to the wparam and lparam parameters of PostMessage. Is that correct? If it is, how am I supposed to do that in AutoIt?
Zedna Posted October 8, 2009 Posted October 8, 2009 (edited) For strings you must allocate memory inside called application's memory (address) space. Look at sources of _GUICtrlListView_GetItemText() or _GUICtrlListView_SetItemText() in "C:\Program Files\AutoIt3\Include\guilistview.au3" Also search forum for WM_COPYDATA to see the right way of interprocess communication. Edited October 8, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
trancexx Posted October 8, 2009 Posted October 8, 2009 Anyway, Megadime likely understood wrong. ♡♡♡ . eMyvnE
trancexx Posted October 9, 2009 Posted October 9, 2009 What do you mean?PostMessage is asynchronous function. That means it returns without waiting for receiver to process it, i.e. string buffer will be destroyed before processed. ♡♡♡ . eMyvnE
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