Click here to Skip to main content
15,924,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHTTP Post / CHttpFile returning non recognizable characters Pin
cmsell28-Sep-07 17:41
cmsell28-Sep-07 17:41 
AnswerRe: HTTP Post / CHttpFile returning non recognizable characters Pin
Randor 29-Sep-07 2:43
professional Randor 29-Sep-07 2:43 
GeneralRe: HTTP Post / CHttpFile returning non recognizable characters Pin
cmsell29-Sep-07 5:52
cmsell29-Sep-07 5:52 
QuestionHow to take first character from edit box text and add it to list box? Pin
freebird7371728-Sep-07 14:11
freebird7371728-Sep-07 14:11 
AnswerRe: How to take first character from edit box text and add it to list box? Pin
Mark Salsbery28-Sep-07 15:03
Mark Salsbery28-Sep-07 15:03 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
freebird7371728-Sep-07 18:05
freebird7371728-Sep-07 18:05 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
Hamid_RT28-Sep-07 19:41
Hamid_RT28-Sep-07 19:41 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
Mark Salsbery28-Sep-07 21:02
Mark Salsbery28-Sep-07 21:02 
I don't know Borland C++ builder so I suggested Win32 APIs.

GetWindowText() takes the handle of the edit control (HWND),
a pointer to a buffer to copy the text into, and the size of the buffer.

TCHAR buffer[80];<br />
GetWindowText(hwndEdit, buffer, sizeof(buffer)/sizeof(TCHAR));<br />
<br />
// Truncate the string to one character<br />
buffer[1] = 0;<br />
<br />
To add a string to a listbox, you can send it a LB_ADDSTRING message...

SendMessage(hwndListBox, LB_ADDSTRING, 0, (LPARAM)buffer);

That's the basics, with no error checking.

Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: How to take first character from edit box text and add it to list box? Pin
freebird7371729-Sep-07 7:08
freebird7371729-Sep-07 7:08 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
Mark Salsbery29-Sep-07 7:49
Mark Salsbery29-Sep-07 7:49 
GeneralRe: How to take first character from edit box text and add it to list box? Pin
freebird7371729-Sep-07 8:22
freebird7371729-Sep-07 8:22 
QuestionHelp on extracting/importing e-mail from outlook express? Pin
ankoump28-Sep-07 10:51
ankoump28-Sep-07 10:51 
AnswerRe: Help on extracting/importing e-mail from outlook express? Pin
Sameerkumar Namdeo28-Sep-07 17:55
Sameerkumar Namdeo28-Sep-07 17:55 
QuestionC data structure question Pin
tjohnson197028-Sep-07 10:11
tjohnson197028-Sep-07 10:11 
AnswerRe: C data structure question Pin
Waldermort28-Sep-07 14:27
Waldermort28-Sep-07 14:27 
AnswerRe: C data structure question Pin
Neo Andreson30-Sep-07 18:42
Neo Andreson30-Sep-07 18:42 
QuestionSending asynchronous IOCTL from user to kernel Pin
Shay Harel28-Sep-07 9:58
Shay Harel28-Sep-07 9:58 
AnswerRe: Sending asynchronous IOCTL from user to kernel Pin
JudyL_MD28-Sep-07 10:06
JudyL_MD28-Sep-07 10:06 
QuestionCompletely novice to Visual Studio Pin
Aloha200728-Sep-07 9:51
Aloha200728-Sep-07 9:51 
QuestionRe: Completely novice to Visual Studio Pin
David Crow28-Sep-07 9:58
David Crow28-Sep-07 9:58 
AnswerRe: Completely novice to Visual Studio Pin
Aloha200728-Sep-07 11:04
Aloha200728-Sep-07 11:04 
AnswerRe: Completely novice to Visual Studio Pin
Hamid_RT28-Sep-07 19:46
Hamid_RT28-Sep-07 19:46 
QuestionHow to get all MFC MDI child windows Pin
Californian228-Sep-07 8:56
Californian228-Sep-07 8:56 
AnswerRe: How to get all MFC MDI child windows Pin
Mark Salsbery28-Sep-07 9:10
Mark Salsbery28-Sep-07 9:10 
GeneralRe: How to get all MFC MDI child windows Pin
Californian228-Sep-07 17:09
Californian228-Sep-07 17: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.