I have source:
LRESULT Vyber = SendDlgItemMessage(hwnd, IDListBox, LB_GETCURSEL, 0, 0);
LRESULT Len = SendDlgItemMessage(hwnd, IDListBox, LB_GETTEXTLEN, 0, 0);
LRESULT Item = SendDlgItemMessage(hwnd, IDListBox, LB_GETTEXT, Vyber, Len + 1);
MessageBox(hwnd,(LPCSTR) Item,"",MB_OK);
My programm falls down if I run this, but I do not why.
Could someone tell me, please?
Shouldn't you be passing a buffer to receive the text for LB_GETTEXT?
Yes!! Of course. Thank you very much!! So stupid failure and too many problems. Thank you very much again!