Click here to Skip to main content
15,911,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAutomatically upgrade firmware for home routers Pin
capulett11-Jun-07 6:25
capulett11-Jun-07 6:25 
QuestionRe: Automatically upgrade firmware for home routers Pin
David Crow11-Jun-07 6:39
David Crow11-Jun-07 6:39 
AnswerRe: Automatically upgrade firmware for home routers Pin
capulett11-Jun-07 7:03
capulett11-Jun-07 7:03 
QuestionExport File to Excel with CSpreadSheet Class Pin
mikobi11-Jun-07 4:55
mikobi11-Jun-07 4:55 
QuestionRe: Export File to Excel with CSpreadSheet Class Pin
David Crow11-Jun-07 6:05
David Crow11-Jun-07 6:05 
QuestionEdit control Pin
tom groezer11-Jun-07 4:47
tom groezer11-Jun-07 4:47 
QuestionRe: Edit control Pin
David Crow11-Jun-07 6:02
David Crow11-Jun-07 6:02 
AnswerRe: Edit control Pin
tom groezer11-Jun-07 6:08
tom groezer11-Jun-07 6:08 
This is the way i have implemented to read the lines from edit control.

LRESULT l_numEvents = ::SendMessage(hwnd, (UINT)EM_GETLINECOUNT, 0, 0);
LRESULT llinelength = ::SendMessage(hwnd, (UINT)EM_LINELENGTH, index, 0); index = 0 for first item
llinelength = ::SendMessage(hwnd, (UINT)EM_GETLINE, index, (LPARAM)(LPCTSTR)tbuffer);

I'm not able to execute the last staement properly.

MSDN says that the last parameter is "A pointer to the buffer that receives a copy of the line. Before sending the message, set the first word of this buffer to the size, in TCHARs, of the buffer. For ANSI text, this is the number of bytes; for Unicode text, this is the number of characters. The size in the first word is overwritten by the copied line.

How do I achieve what is mentioned in italisized code.
QuestionRe: Edit control Pin
David Crow11-Jun-07 6:22
David Crow11-Jun-07 6:22 
AnswerRe: Edit control Pin
tom groezer11-Jun-07 8:29
tom groezer11-Jun-07 8:29 
GeneralRe: Edit control Pin
David Crow11-Jun-07 8:35
David Crow11-Jun-07 8:35 
GeneralRe: Edit control Pin
tom groezer11-Jun-07 21:04
tom groezer11-Jun-07 21:04 
QuestionRe: Edit control Pin
David Crow12-Jun-07 2:30
David Crow12-Jun-07 2:30 
QuestionFind Parent Dialog data in custom control on dialog? [modified] Pin
ldsdbomber11-Jun-07 4:00
ldsdbomber11-Jun-07 4:00 
AnswerRe: Find Parent Dialog data in custom control on dialog? Pin
ldsdbomber11-Jun-07 6:21
ldsdbomber11-Jun-07 6:21 
GeneralRe: Find Parent Dialog data in custom control on dialog? Pin
Mark Salsbery11-Jun-07 6:54
Mark Salsbery11-Jun-07 6:54 
GeneralRe: Find Parent Dialog data in custom control on dialog? Pin
ldsdbomber11-Jun-07 21:27
ldsdbomber11-Jun-07 21:27 
GeneralRe: Find Parent Dialog data in custom control on dialog? Pin
Mark Salsbery12-Jun-07 6:31
Mark Salsbery12-Jun-07 6:31 
QuestionPassing parameters to Thread function. Pin
priyank_ldce11-Jun-07 3:33
priyank_ldce11-Jun-07 3:33 
AnswerRe: Passing parameters to Thread function. Pin
KarstenK11-Jun-07 3:47
mveKarstenK11-Jun-07 3:47 
AnswerRe: Passing parameters to Thread function. [modified] Pin
Mark Salsbery11-Jun-07 6:58
Mark Salsbery11-Jun-07 6:58 
AnswerRe: Passing parameters to Thread function. Pin
Mark Salsbery11-Jun-07 7:22
Mark Salsbery11-Jun-07 7:22 
AnswerRe: Passing parameters to Thread function. Pin
ThatsAlok11-Jun-07 20:03
ThatsAlok11-Jun-07 20:03 
QuestionQuick change of class of custom control? Pin
ldsdbomber11-Jun-07 3:26
ldsdbomber11-Jun-07 3:26 
AnswerRe: Quick change of class of custom control? Pin
ldsdbomber11-Jun-07 3:29
ldsdbomber11-Jun-07 3:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.