Click here to Skip to main content
15,893,486 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMove Window Pin
mehrdadov9-Apr-06 1:49
mehrdadov9-Apr-06 1:49 
AnswerRe: Move Window Pin
YaronNir9-Apr-06 2:28
YaronNir9-Apr-06 2:28 
AnswerRe: Move Window Pin
PJ Arends9-Apr-06 11:14
professionalPJ Arends9-Apr-06 11:14 
AnswerRe: Move Window Pin
ThatsAlok9-Apr-06 19:13
ThatsAlok9-Apr-06 19:13 
Questionint32 = (char1,char2,char3,char4) Pin
big_denny_2009-Apr-06 1:45
big_denny_2009-Apr-06 1:45 
AnswerRe: int32 = (char1,char2,char3,char4) Pin
Hamid_RT9-Apr-06 3:13
Hamid_RT9-Apr-06 3:13 
GeneralRe: int32 = (char1,char2,char3,char4) Pin
big_denny_2009-Apr-06 5:20
big_denny_2009-Apr-06 5:20 
GeneralRe: int32 = (char1,char2,char3,char4) Pin
Hamid_RT9-Apr-06 6:10
Hamid_RT9-Apr-06 6:10 
Hi big_denny_200

but(why x is 52)

__int32 x = 0;
__int32 x2 = 0;

char *str = "/01234aA";
x = str[0],str[1],str[2],str[3];//->47

x2 = (str[0],str[1],str[2],str[3]);//-->50


__int32 m_check=0;
m_check=str[0];//47
m_check=str[1];//48
m_check=str[2];//49
m_check=str[3];//50
m_check=str[4];//51
m_check=str[5];//52
m_check=str[6];//97
m_check=str[7];//65

//m_check is 65,Now whats test?

char *test;
test=(char*)&m_check;
//test is A

A=65

Do you know ascii code?
if you press Alt+65 then print A or if you pree Alt+97 then print a

Right?




-- modified at 12:30 Sunday 9th April, 2006
AnswerRe: int32 = (char1,char2,char3,char4) Pin
Stephen Hewitt9-Apr-06 14:02
Stephen Hewitt9-Apr-06 14:02 
Question3D Game Engine Architecture's web Pin
akira329-Apr-06 1:26
akira329-Apr-06 1:26 
AnswerRe: 3D Game Engine Architecture's web Pin
BEamer9-Apr-06 3:07
BEamer9-Apr-06 3:07 
QuestionFile Icon Pin
big_denny_2008-Apr-06 23:38
big_denny_2008-Apr-06 23:38 
AnswerRe: File Icon Pin
Hamid_RT9-Apr-06 0:05
Hamid_RT9-Apr-06 0:05 
AnswerRe: File Icon Pin
RChin9-Apr-06 1:07
RChin9-Apr-06 1:07 
Questionintellisense with directx Pin
blue_rabbit8-Apr-06 20:59
blue_rabbit8-Apr-06 20:59 
AnswerRe: intellisense with directx Pin
Trollslayer8-Apr-06 22:56
mentorTrollslayer8-Apr-06 22:56 
Questionpointer to function in class Pin
blue_rabbit8-Apr-06 20:43
blue_rabbit8-Apr-06 20:43 
AnswerRe: pointer to function in class Pin
Matt Godbolt8-Apr-06 22:43
Matt Godbolt8-Apr-06 22:43 
Questionvc++ Pin
sudeep_br8-Apr-06 15:43
sudeep_br8-Apr-06 15:43 
AnswerRe: vc++ Pin
EvScott8-Apr-06 16:36
EvScott8-Apr-06 16:36 
GeneralRe: vc++ Pin
sudeep_br9-Apr-06 4:31
sudeep_br9-Apr-06 4:31 
GeneralRe: vc++ Pin
EvScott9-Apr-06 5:30
EvScott9-Apr-06 5:30 
GeneralRe: vc++ Pin
sudeep_br9-Apr-06 18:01
sudeep_br9-Apr-06 18:01 
GeneralRe: vc++ Pin
Hamid_RT9-Apr-06 20:04
Hamid_RT9-Apr-06 20:04 
AnswerRe: vc++ Pin
Michael Dunn8-Apr-06 16:38
sitebuilderMichael Dunn8-Apr-06 16:38 

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.