Message handler EM_GETLINE prob...
COM
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I am trying to use the EM_GETLINE message to get the text of a particular line but i am not able to send the last parameter i.e the lpram..for the SendMessage function... anyone plz let me know how to do this... i am doin in the following way char[] buffer = new char[255]; buffer[0] = (char)255; Message msg = Message.Create(this.Handle, EM_GETLINE, (IntPtr)Index, (IntPtr)buffer[0]); base.DefWndProc(ref msg); return msg.Result.ToInt32(); but it gives me a error like.. "Attempted to read write protected memory. This is often indication that other memory is corrupt." F1! F1! cheers Chettu