Click here to Skip to main content
16,016,580 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: i dont understand why i cant... Pin
Trollslayer21-Aug-05 12:50
mentorTrollslayer21-Aug-05 12:50 
GeneralRe: i dont understand why i cant... Pin
Gurra_Koo21-Aug-05 12:50
Gurra_Koo21-Aug-05 12:50 
GeneralRe: i dont understand why i cant... Pin
Jose Lamas Rios21-Aug-05 15:38
Jose Lamas Rios21-Aug-05 15:38 
GeneralRe: i dont understand why i cant... Pin
Tim Zorn21-Aug-05 14:09
Tim Zorn21-Aug-05 14:09 
GeneralRe: i dont understand why i cant... Pin
Tim Zorn22-Aug-05 5:37
Tim Zorn22-Aug-05 5:37 
GeneralRe: i dont understand why i cant... Pin
Tim Zorn21-Aug-05 14:23
Tim Zorn21-Aug-05 14:23 
GeneralRe: i dont understand why i cant... Pin
Jose Lamas Rios22-Aug-05 5:50
Jose Lamas Rios22-Aug-05 5:50 
GeneralRe: i dont understand why i cant... Pin
Jose Lamas Rios21-Aug-05 16:40
Jose Lamas Rios21-Aug-05 16:40 
From MSDN's documentation for the GETTEXTEX Structure[^]:
"The GETTEXTEX structure contains information about an operation to get text from a rich edit control"

Are you trying this with a rich edit control? Otherwise, I don't think it will work.

Try this instead:
   const int nBufLen = 512; // or whatever size you want
   TCHAR buffer[nBufLen];
   SendMessage(0, WM_GETTEXT, nBufLen, (LPARAM) buffer);
   // Text should be in buffer now



--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: i dont understand why i cant... Pin
Tim Zorn22-Aug-05 5:34
Tim Zorn22-Aug-05 5:34 
GeneralRe: i dont understand why i cant... Pin
Jose Lamas Rios22-Aug-05 5:47
Jose Lamas Rios22-Aug-05 5:47 
GeneralMDI problem Pin
Ali Tavakol21-Aug-05 9:45
Ali Tavakol21-Aug-05 9:45 
GeneralRe: MDI problem Pin
Gurra_Koo21-Aug-05 12:54
Gurra_Koo21-Aug-05 12:54 
GeneralRe: MDI problem Pin
Ali Tavakol21-Aug-05 20:04
Ali Tavakol21-Aug-05 20:04 
Questionhow to get binary RGB data from webcam? Pin
ThinkingPrometheus21-Aug-05 9:14
ThinkingPrometheus21-Aug-05 9:14 
AnswerRe: how to get binary RGB data from webcam? Pin
Andrew Walker21-Aug-05 16:32
Andrew Walker21-Aug-05 16:32 
GeneralRe: how to get binary RGB data from webcam? Pin
ThinkingPrometheus23-Aug-05 12:11
ThinkingPrometheus23-Aug-05 12:11 
GeneralPrinting multiple Views in MFC Pin
suzie10021-Aug-05 8:40
suzie10021-Aug-05 8:40 
GeneralRe: Printing multiple Views in MFC Pin
Jano Petras21-Aug-05 14:46
Jano Petras21-Aug-05 14:46 
Generalgetting text of selected item in listview Pin
/*Trucker*\21-Aug-05 8:04
/*Trucker*\21-Aug-05 8:04 
GeneralRe: getting text of selected item in listview Pin
Jose Lamas Rios21-Aug-05 11:08
Jose Lamas Rios21-Aug-05 11:08 
GeneralRe: getting text of selected item in listview Pin
/*Trucker*\21-Aug-05 11:16
/*Trucker*\21-Aug-05 11:16 
GeneralRe: getting text of selected item in listview Pin
Jose Lamas Rios21-Aug-05 17:35
Jose Lamas Rios21-Aug-05 17:35 
GeneralRe: getting text of selected item in listview Pin
Jordan C. Atlas5-Apr-06 11:37
Jordan C. Atlas5-Apr-06 11:37 
GeneralTaskbar Button don't have the correct status Pin
mamtz21-Aug-05 7:10
mamtz21-Aug-05 7:10 
GeneralRe: Taskbar Button don't have the correct status Pin
/*Trucker*\21-Aug-05 9:43
/*Trucker*\21-Aug-05 9:43 

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.