EditControl EM_GETLINE Problem
I'm trying to read the contents of an edit control box line by line. The program I am reading from was written in Visual Basic, but my program is written in C. I'm having problems with EM_GETLINE. It works for the first line, but all subsequent line requests fail. This is what I'm calling:
Code:
printf("Chars copied: %d\n", SendMessage(hwnd, EM_GETLINE, (WPARAM) linenum,
(LPARAM) (LPCSTR) &textName));
Are there any alternative ways of reading text line-by-line from an edit control box?