Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASCII conversion

Status
Not open for further replies.

CindyBain

Technical User
Jun 21, 2001
1
JP
This may be an easy question for you, but it has been a long time since I have used this. I am trying to remember how to convert regular text to ascII to binary digit(bit).
If anyone could take a brief moment to refresh my memory I would appreciate it.
 
I've checked that before but it seemed that asc command only works out for VB, not visual c++. Could you please help me again with that? thanks
 
Hi,

You should really ask that question in the C++ forum, this is the VB forum... but in c++:
--------------------------------------------
char MyChar='a';
int MyAcsii=MyChar;
--------------------------------------------
the ascii value is in MyAcii.

Sunaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top