It says that AppendText is not declared
...nvm, im using that now.I got this
Code:
SendMessage(hTextbox, WM_SETTEXT, 0,0);
TCHAR szText[4096];
va_list args;
int nTxtLen;
/* Move selection to end of text */
nTxtLen = GetWindowTextLength(hwnd);
SendMessage(hwnd, EM_SETSEL, nTxtLen, nTxtLen);
/* Format the text into the buffer */
va_start(args, line);
_vsntprintf(szText, sizeof(szText) / sizeof(szText[0]),(LPCSTR)line.c_str(), args);
szText[(sizeof(szText) / sizeof(szText[0])) - 1] = TEXT('\0');
va_end(args);
/* Add the text line and scroll it into view */
SendMessage(hTextbox, EM_REPLACESEL, FALSE, (LPARAM) szText);
SendMessage(hTextbox, EM_SCROLLCARET, 0, 0);
Im getting the error:
`va_start' used in function with fixed args
??