Click here to Skip to main content
15,506,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: Need to communicate between two server processes Pin
David Crow19-Jan-16 10:41
David Crow19-Jan-16 10:41 
SuggestionRe: Need to communicate between two server processes Pin
Midi_Mick19-Jan-16 19:37
professionalMidi_Mick19-Jan-16 19:37 
QuestionC1001 internal Compiler error VS 2012 pro Pin
ForNow19-Jan-16 5:14
ForNow19-Jan-16 5:14 
AnswerRe: C1001 internal Compiler error VS 2012 pro Pin
Richard MacCutchan19-Jan-16 5:21
mveRichard MacCutchan19-Jan-16 5:21 
GeneralRe: C1001 internal Compiler error VS 2012 pro Pin
ForNow19-Jan-16 9:07
ForNow19-Jan-16 9:07 
AnswerRe: C1001 internal Compiler error VS 2012 pro Pin
Jochen Arndt19-Jan-16 5:30
professionalJochen Arndt19-Jan-16 5:30 
GeneralRe: C1001 internal Compiler error VS 2012 pro Pin
ForNow19-Jan-16 9:05
ForNow19-Jan-16 9:05 
QuestionC, Win32: l need help getting user input[Solved] Pin
Member 1213944217-Jan-16 12:41
Member 1213944217-Jan-16 12:41 
TCHAR userName[100];//user input buffer

hwndedit=GetDlgItem(hwnd,IDC_UNICALPTUME_SUBJECT_TBOX);//gets edit control's handle

userName[100]=(TCHAR) SendMessage(hwndedit,WM_GETTEXT,(WPARAM)sizeof(userName)/sizeof(userName[0]),(LPARAM)userName);//Sent message
return (INT_PTR)TRUE;

case IDOK://checks if buffer is empty or not when the user clicks OK on the dialog
if(userName!=NULL)
EndDialog(hwnd,TRUE);
return (INT_PTR)TRUE;

l also tried GetWindowText(hwnd,userName,sizeof(userName)/sizeof(userName[0]))
still it doesn't work. Please can someone me guide me on getting user input and checking if the buffer is empty or not.
Thanks everyone.

modified 18-Jan-16 17:11pm.

AnswerRe: C, Win32: l need help getting user input PinPopular
Richard MacCutchan17-Jan-16 22:31
mveRichard MacCutchan17-Jan-16 22:31 
PraiseRe: C, Win32: l need help getting user input Pin
Member 1213944218-Jan-16 12:10
Member 1213944218-Jan-16 12:10 
QuestionContext menu style of Shell in Windows 10 Pin
rikka0w016-Jan-16 20:21
rikka0w016-Jan-16 20:21 
QuestionC function to call 5 different functions Pin
Member 1213438816-Jan-16 6:55
Member 1213438816-Jan-16 6:55 
AnswerRe: C function to call 5 different functions Pin
Richard Andrew x6416-Jan-16 7:48
professionalRichard Andrew x6416-Jan-16 7:48 
GeneralRe: C function to call 5 different functions Pin
Member 1213438816-Jan-16 10:18
Member 1213438816-Jan-16 10:18 
QuestionCheck and uninstall a driver programatically using C++ Pin
Prasanth.outofboxt14-Jan-16 23:09
Prasanth.outofboxt14-Jan-16 23:09 
AnswerRe: Check and uninstall a driver programatically using C++ Pin
Jochen Arndt14-Jan-16 23:30
professionalJochen Arndt14-Jan-16 23:30 
QuestionWin32: l need help on filling a combo box [Solved] Pin
Member 1213944214-Jan-16 11:53
Member 1213944214-Jan-16 11:53 
AnswerRe: Win32: l need help on filling a combo box Pin
Richard Andrew x6414-Jan-16 13:09
professionalRichard Andrew x6414-Jan-16 13:09 
AnswerRe: Win32: l need help on filling a combo box Pin
Jochen Arndt14-Jan-16 22:23
professionalJochen Arndt14-Jan-16 22:23 
PraiseRe: Win32: l need help on filling a combo box Pin
Member 1213944215-Jan-16 9:09
Member 1213944215-Jan-16 9:09 
QuestionOpen the file but do not save the args Pin
honor3us13-Jan-16 9:42
honor3us13-Jan-16 9:42 
AnswerRe: Open the file but do not save the args Pin
jeron113-Jan-16 10:18
jeron113-Jan-16 10:18 
GeneralRe: Open the file but do not save the args Pin
honor3us14-Jan-16 1:46
honor3us14-Jan-16 1:46 
SuggestionRe: Open the file but do not save the args Pin
David Crow13-Jan-16 10:33
David Crow13-Jan-16 10:33 
GeneralRe: Open the file but do not save the args Pin
honor3us14-Jan-16 1:56
honor3us14-Jan-16 1:56 

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.