Hi everybody:
I'm trying to send a message between two windows and the WPARAM should be the String, which is contained in a textbox of the senderwindow. I'm programming in C++/CLI.
I know that WPARAM is defined als UNIT_PTR. I tried to cast, but it doesn't work. SendMessageW(handle,WM_USER+40,(WPARAM)(this->TextBox->Text),(LPARAM)i)
Thanks for your reply, webJose. But I don't understand.
Yes the windows are 2 forms in the same executable, but the Textbox is a private member, so I cannot access it from other window.
I think your recommedation was: String^ mystring = SenderWidow::TextBox->Text
isn't it??