I'm trying to populate a char array with the text in a text box. Here's my code:
Code:
//in my global variable declares:
HWND Txt1;
//in my message handler, case WM_CREATE:
Txt1=CreateWindowEx(0,"Edit","Text Box",WS_CHILD | WS_VISIBLE, 15,90,90,15,hwnd,NULL,hInstMain,NULL);
//the offending code, called when a cmd btn is pushed:
int iMaxChar=100;
char buffTxt1[100];
SendMessage(Txt1,WM_GETTEXT,iMaxChar,&buffTxt1);
Error C2664: 'SendMessageA' : cannot convert parameter 4 from 'char *(*)[100]' to 'long'
I've tried:
Code:
SendMessage(Txt1,WM_GETTEXT,iMaxChar,buffTxt1);
I'm sure I'm missing something simple I just don't see it. Thanks in advance for any help.