Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

// here's some code ... /////////

Status
Not open for further replies.

intMain

Programmer
Jul 9, 2001
5
RO
// here's some code ...
///////////////////////
case IDC_GET:
GetDlgItemText(hWnd, IDC_TXT, g_lpBuff, 64); //da problem
break;
///////////////////////
//IDC_GET - a button ID
//IDC_TXT - a text box ID
//LPTSTR g_lpBuff = NULL; - a global buffer var
//what's wrong ???
 
GetDlgItemText(hWnd, IDC_TXT, g_lpBuff, 64);
In my opinion this function send one message which you try to handle. Did you get there an infinite recursion or some error? John Fill
1c.bmp


ivfmd@mail.md
 
Oh, sorry, you must allocate memory for buffer at the first. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top