Click here to Skip to main content
12,752,448 members (40,508 online)

C / C++ / MFC

 
GeneralRe: Messagebox Pin
sarfaraznawaz12-Aug-12 20:39
membersarfaraznawaz12-Aug-12 20:39 
GeneralRe: Messagebox Pin
pasztorpisti12-Aug-12 20:50
memberpasztorpisti12-Aug-12 20:50 
GeneralRe: Messagebox Pin
pasztorpisti9-Aug-12 21:55
memberpasztorpisti9-Aug-12 21:55 
QuestionHow to check if a character is from keyboard in MFC Pin
Andraw1118-Aug-12 11:50
memberAndraw1118-Aug-12 11:50 
QuestionRe: How to check if a character is from keyboard in MFC Pin
Eugen Podsypalnikov8-Aug-12 12:03
memberEugen Podsypalnikov8-Aug-12 12:03 
AnswerRe: How to check if a character is from keyboard in MFC Pin
TopCoder238-Aug-12 21:05
memberTopCoder238-Aug-12 21:05 
GeneralRe: How to check if a character is from keyboard in MFC Pin
Peter_in_27808-Aug-12 21:25
memberPeter_in_27808-Aug-12 21:25 
GeneralRe: How to check if a character is from keyboard in MFC Pin
TopCoder238-Aug-12 22:43
memberTopCoder238-Aug-12 22:43 
Then is_from_keyboard() below is better suited. It includes punctuation , spaces etc.

#include <iostream>
using namespace std;

int is_from_keyboard(int ch)
{

	if ( ch>31 && ch<128) return 1;
	else return -1;

}

int main()
{
  char ch='z';

  if (is_from_keyboard(ch))

       cout<<"The ASCII character  -> "<<ch<<" ("<<(int)ch<<") <- is from the keyboard. \n\n";
  else 
	   cout<<"The ASCII character  -> "<<ch<<" ("<<(int)ch<<") <- is NOT from the keyboard. \n\n";

  return 0;
}

JokeRe: How to check if a character is from keyboard in MFC Pin
Eugen Podsypalnikov8-Aug-12 23:17
memberEugen Podsypalnikov8-Aug-12 23:17 
QuestionCB_SELECTSTRING related question Pin
tagopi8-Aug-12 1:24
membertagopi8-Aug-12 1:24 
AnswerRe: CB_SELECTSTRING related question Pin
Eugen Podsypalnikov8-Aug-12 1:33
memberEugen Podsypalnikov8-Aug-12 1:33 
GeneralRe: CB_SELECTSTRING related question Pin
tagopi8-Aug-12 1:36
membertagopi8-Aug-12 1:36 
GeneralRe: CB_SELECTSTRING related question Pin
Eugen Podsypalnikov8-Aug-12 1:42
memberEugen Podsypalnikov8-Aug-12 1:42 
GeneralRe: CB_SELECTSTRING related question (solved) Pin
tagopi8-Aug-12 1:53
membertagopi8-Aug-12 1:53 
QuestionHow to Dercypt file in C# encrypted in C using Rjindael Algorithm Pin
sangamdumne8-Aug-12 0:52
membersangamdumne8-Aug-12 0:52 
GeneralRe: How to Dercypt file in C# encrypted in C using Rjindael Algorithm Pin
TopCoder238-Aug-12 1:38
memberTopCoder238-Aug-12 1:38 
GeneralC++ CALL CRange's get_shapeRange() triggers an exception Pin
BianChengNan7-Aug-12 22:49
memberBianChengNan7-Aug-12 22:49 
GeneralRe: C++ CALL CRange's get_shapeRange() triggers an exception Pin
_AnsHUMAN_ 8-Aug-12 1:36
group_AnsHUMAN_ 8-Aug-12 1:36 
GeneralRe: C++ CALL CRange's get_shapeRange() triggers an exception Pin
BianChengNan8-Aug-12 15:53
memberBianChengNan8-Aug-12 15:53 
GeneralRe: C++ CALL CRange's get_shapeRange() triggers an exception Pin
BianChengNan8-Aug-12 17:08
memberBianChengNan8-Aug-12 17:08 
SuggestionRe: C++ CALL CRange's get_shapeRange() triggers an exception Pin
Richard MacCutchan8-Aug-12 2:46
mvpRichard MacCutchan8-Aug-12 2:46 
GeneralRe: C++ CALL CRange's get_shapeRange() triggers an exception Pin
BianChengNan8-Aug-12 15:51
memberBianChengNan8-Aug-12 15:51 
GeneralRe: C++ CALL CRange's get_shapeRange() triggers an exception Pin
BianChengNan8-Aug-12 17:09
memberBianChengNan8-Aug-12 17:09 
QuestionC,C# Pin
sangamdumne7-Aug-12 20:41
membersangamdumne7-Aug-12 20:41 
GeneralRe: C,C# Pin
CPallini7-Aug-12 22:10
mvpCPallini7-Aug-12 22:10 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 21 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid