Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionadd colors to buttons Pin
Manmohan_198323-Dec-05 2:58
Manmohan_198323-Dec-05 2:58 
AnswerRe: add colors to buttons Pin
FarPointer23-Dec-05 3:57
FarPointer23-Dec-05 3:57 
GeneralRe: add colors to buttons Pin
Manmohan_198325-Dec-05 18:21
Manmohan_198325-Dec-05 18:21 
GeneralRe: add colors to buttons Pin
FarPointer25-Dec-05 20:28
FarPointer25-Dec-05 20:28 
GeneralRe: add colors to buttons Pin
ThatsAlok25-Dec-05 21:03
ThatsAlok25-Dec-05 21:03 
Questionunsigned char Pin
Smith#23-Dec-05 0:36
Smith#23-Dec-05 0:36 
AnswerRe: unsigned char Pin
Russell'23-Dec-05 0:52
Russell'23-Dec-05 0:52 
AnswerRe: unsigned char Pin
toxcct23-Dec-05 2:18
toxcct23-Dec-05 2:18 
char is quite bad named because its name confuses too much the newbies.
of course, char goes to be used in strings, but first, that's not always true, and secondly, it does not serves only for that.

char in C/C++ is simply a signed byte, not more, not less. that means it can be used as a character (in strings), but also as an integer of 8 bits, or as a simple 8 bits array.

about the signature, yes, a char is by default signed, which means it contains values between [-128 ; +127].

but usually, the mainly used characters in the ascii tables are under the code 127 (over that, they are called extended char sets).
if you want more than that, you'll have to use UNICODE instead of ASCII, which stores a character on 16 bits instead...

to display a char string, simply use the "" notation, ,and the compiler will format your variable as needed ('\0' terminated)...


TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VisualCalc 3.0]
GeneralRe: unsigned char Pin
Nemanja Trifunovic24-Dec-05 10:09
Nemanja Trifunovic24-Dec-05 10:09 
GeneralRe: unsigned char Pin
segment_fault3-Jan-06 18:02
segment_fault3-Jan-06 18:02 
QuestionTo Delete Objects created by IMPLEMENT_DYNACREATE Pin
birajendu22-Dec-05 23:38
birajendu22-Dec-05 23:38 
AnswerRe: To Delete Objects created by IMPLEMENT_DYNACREATE Pin
Sheng Jiang 蒋晟24-Dec-05 9:28
Sheng Jiang 蒋晟24-Dec-05 9:28 
QuestionRGBQUAD in Bitmap Class Pin
vikas amin22-Dec-05 23:29
vikas amin22-Dec-05 23:29 
AnswerRe: RGBQUAD in Bitmap Class Pin
toxcct22-Dec-05 23:46
toxcct22-Dec-05 23:46 
AnswerRe: RGBQUAD in Bitmap Class Pin
Russell'22-Dec-05 23:56
Russell'22-Dec-05 23:56 
AnswerRe: RGBQUAD in Bitmap Class Pin
Amal P23-Dec-05 0:23
Amal P23-Dec-05 0:23 
Question#if Pin
Smith#22-Dec-05 22:54
Smith#22-Dec-05 22:54 
AnswerRe: #if Pin
Owner drawn22-Dec-05 23:10
Owner drawn22-Dec-05 23:10 
GeneralRe: #if Pin
Smith#22-Dec-05 23:37
Smith#22-Dec-05 23:37 
AnswerRe: #if Pin
toxcct22-Dec-05 23:18
toxcct22-Dec-05 23:18 
GeneralRe: #if Pin
Smith#22-Dec-05 23:40
Smith#22-Dec-05 23:40 
GeneralRe: #if [edited] Pin
toxcct22-Dec-05 23:41
toxcct22-Dec-05 23:41 
GeneralRe: #if [edited] Pin
Eytukan23-Dec-05 0:37
Eytukan23-Dec-05 0:37 
AnswerRe: #if Pin
khan++22-Dec-05 23:35
khan++22-Dec-05 23:35 
GeneralRe: #if Pin
Smith#22-Dec-05 23:39
Smith#22-Dec-05 23:39 

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.