MFC or Win32 API?
Hi, I have some problems and I think the mpgh.net can solved this
in the c++ dll I add form and when I inject dll my form is coming, it's not problem. I add the form listbox,textbox and button.
I want to when I press button1, listBox1->Items(2) in the textbox1 ? How can I do it ? Please help me
(I want to when I click button1 listBox1->Items(2) convert to textbox1.text )
MFC or Win32 API?
Last edited by Biesi; 04-14-2014 at 08:48 AM.
Use the LB_GETTEXT WM
https://msdn.microsof*****m/en-us/libr...(v=vs.85).aspx
I can't make, please send the code I can't understand :/(
Code:char chBuffer[256]; SendDlgItemMessage(hwnd, ListBoxId, LB_GETTEXT, 2, (LPARAM)(LPSTR)chBuffer);
listBox1->Items(2).ToString() can work, nop ?
Not Work
I have this error for listBox1: IntelliSense: call of an object of a handle type without appropriate operator() or conversion functions to pointer-to-function type
Some one help me please how can I listbox1 items(2) value to textbox1.text ? I dont want textbox1->Text to add list box, I just want how can I listbox1 items value to textbox, for example listbox1 items2 = hello, when I click button or form load my textbox1->text = hello
@hacktry3169
Okay, you can try this one
You can also try findstring methode (MSDN Source)Code:string text = listBox1->GetItemText(listBox1->Items(2));
Last edited by Babart; 04-21-2014 at 05:13 AM.
Some body can help me ? Please I need this code