Let me guess, you get a maximum of 32 charaters? You might want to read the documentation for EM_GETLINE, you might have saved yourself the trouble if you searched the forums, this not the first time this issue is asked.