Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registered ActiveX Controls Pin
Joan M10-Feb-07 1:05
professionalJoan M10-Feb-07 1:05 
QuestionBuilding an MFC in Release Mode Pin
Member 17658779-Feb-07 21:03
Member 17658779-Feb-07 21:03 
AnswerRe: Building an MFC in Release Mode Pin
Michael Dunn9-Feb-07 21:10
sitebuilderMichael Dunn9-Feb-07 21:10 
Question2 Process at a time in Win 32 App Pin
Suresh H9-Feb-07 17:56
Suresh H9-Feb-07 17:56 
AnswerRe: 2 Process at a time in Win 32 App Pin
Naveen9-Feb-07 18:04
Naveen9-Feb-07 18:04 
GeneralRe: 2 Process at a time in Win 32 App Pin
Suresh H9-Feb-07 18:31
Suresh H9-Feb-07 18:31 
QuestionRe: 2 Process at a time in Win 32 App Pin
Suresh H9-Feb-07 18:56
Suresh H9-Feb-07 18:56 
AnswerRe: 2 Process at a time in Win 32 App Pin
Naveen9-Feb-07 19:16
Naveen9-Feb-07 19:16 
Suresh H wrote:
SendMessage(HEFName , EM_GETLINE, 0 ,(LPARAM)FName);


MSDN says

lParam:<br />
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.


so u should set the first 2 byte of buffer as size of the array.

char *FName = new char[20];<br />
WORD* pWord = (WORD*)FName;<br />
*pWord = 20;<br />
HWND HEFName = GetDlgItem(hwnd, IDC_FILE_NAME);<br />
SendMessage(HEFName , EM_GETLINE, 0 ,(LPARAM)FName);
]

if the edit control is a single line edit I suggest you to use GetWindowText() function.

nave

GeneralRe: 2 Process at a time in Win 32 App Pin
Suresh H9-Feb-07 19:33
Suresh H9-Feb-07 19:33 
GeneralRe: 2 Process at a time in Win 32 App Pin
Naveen9-Feb-07 19:50
Naveen9-Feb-07 19:50 
GeneralRe: 2 Process at a time in Win 32 App Pin
Suresh H9-Feb-07 19:53
Suresh H9-Feb-07 19:53 
GeneralRe: 2 Process at a time in Win 32 App Pin
S Douglas10-Feb-07 22:43
professionalS Douglas10-Feb-07 22:43 
Questionhow can i pass my array object in function arguments by reference? Pin
amitmistry_petlad 9-Feb-07 16:59
amitmistry_petlad 9-Feb-07 16:59 
AnswerRe: how can i pass my array object in function arguments by reference? Pin
Naveen9-Feb-07 17:17
Naveen9-Feb-07 17:17 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
amitmistry_petlad 9-Feb-07 17:20
amitmistry_petlad 9-Feb-07 17:20 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
Naveen9-Feb-07 17:31
Naveen9-Feb-07 17:31 
AnswerRe: how can i pass my array object in function arguments by reference? Pin
Eytukan9-Feb-07 17:33
Eytukan9-Feb-07 17:33 
AnswerRe: how can i pass my array object in function arguments by reference? Pin
Michael Dunn9-Feb-07 17:39
sitebuilderMichael Dunn9-Feb-07 17:39 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
Naveen9-Feb-07 17:57
Naveen9-Feb-07 17:57 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
Michael Dunn9-Feb-07 21:09
sitebuilderMichael Dunn9-Feb-07 21:09 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
Naveen9-Feb-07 21:13
Naveen9-Feb-07 21:13 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
hsuch9-Feb-07 23:21
hsuch9-Feb-07 23:21 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
amitmistry_petlad 9-Feb-07 19:35
amitmistry_petlad 9-Feb-07 19:35 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
Naveen9-Feb-07 19:55
Naveen9-Feb-07 19:55 
GeneralRe: how can i pass my array object in function arguments by reference? Pin
amitmistry_petlad 9-Feb-07 20:09
amitmistry_petlad 9-Feb-07 20:09 

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.