Click here to Skip to main content
15,905,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalwe can't use some API functions Pin
mohsen nowruzi4-Jul-05 23:12
mohsen nowruzi4-Jul-05 23:12 
GeneralRe: we can't use some API functions Pin
Christian Graus4-Jul-05 23:48
protectorChristian Graus4-Jul-05 23:48 
GeneralRe: we can't use some API functions Pin
BlackDice5-Jul-05 2:49
BlackDice5-Jul-05 2:49 
GeneralRe: we can't use some API functions Pin
Blake Miller5-Jul-05 4:49
Blake Miller5-Jul-05 4:49 
GeneralRe: we can't use some API functions Pin
BlackDice5-Jul-05 5:01
BlackDice5-Jul-05 5:01 
GeneralRe: we can't use some API functions Pin
Blake Miller5-Jul-05 5:17
Blake Miller5-Jul-05 5:17 
General'^' operator Pin
LiYS4-Jul-05 22:52
LiYS4-Jul-05 22:52 
GeneralRe: '^' operator Pin
PravinSingh4-Jul-05 23:33
PravinSingh4-Jul-05 23:33 
'^' is the XOR operator, which works bitwise. The result of XOR operator will have the bits ON only where the corresponding bits of the operands are different (i.e. one is ON and other is OFF) and the result will have the bit OFF if the corresponding bits of the operands are same (both ON or both OFF).

If you examine your code, you'll find that ultimately you are doing a

*x = *x ^ *y ^ *x<br />
*y = *x ^ *y ^ *y


XORing anything to itself nullifies the effect, so you are gettning

*x = *y<br />
*y = *x


Regards,
Pravin
GeneralRe: '^' operator Pin
LiYS4-Jul-05 23:48
LiYS4-Jul-05 23:48 
GeneralRe: '^' operator Pin
PravinSingh5-Jul-05 0:04
PravinSingh5-Jul-05 0:04 
GeneralRe: '^' operator Pin
Bob Stanneveld5-Jul-05 0:25
Bob Stanneveld5-Jul-05 0:25 
GeneralRe: '^' operator Pin
LiYS5-Jul-05 0:04
LiYS5-Jul-05 0:04 
GeneralRe: '^' operator Pin
Bob Stanneveld5-Jul-05 0:31
Bob Stanneveld5-Jul-05 0:31 
GeneralRe: '^' operator Pin
Bob Stanneveld5-Jul-05 0:36
Bob Stanneveld5-Jul-05 0:36 
GeneralRe: '^' operator Pin
toxcct5-Jul-05 1:02
toxcct5-Jul-05 1:02 
GeneralRe: '^' operator Pin
Bob Stanneveld5-Jul-05 2:09
Bob Stanneveld5-Jul-05 2:09 
GeneralRe: '^' operator Pin
Toby Opferman5-Jul-05 8:32
Toby Opferman5-Jul-05 8:32 
GeneralRe: '^' operator Pin
David Crow5-Jul-05 5:05
David Crow5-Jul-05 5:05 
GeneralRe: '^' operator Pin
Toby Opferman5-Jul-05 6:45
Toby Opferman5-Jul-05 6:45 
GeneralRe: '^' operator Pin
Toby Opferman5-Jul-05 6:50
Toby Opferman5-Jul-05 6:50 
GeneralRe: '^' operator Pin
PJ Arends5-Jul-05 9:02
professionalPJ Arends5-Jul-05 9:02 
QuestionTo delete (remove) wizard created functions via IDE of VC++ 2003 ? Pin
Maxwell Chen4-Jul-05 22:29
Maxwell Chen4-Jul-05 22:29 
Generalchanging color of my form in vc++ Pin
smartymanav4-Jul-05 21:45
smartymanav4-Jul-05 21:45 
GeneralRe: changing color of my form in vc++ Pin
Alex Korchemniy4-Jul-05 21:54
Alex Korchemniy4-Jul-05 21:54 
GeneralRe: changing color of my form in vc++ Pin
David Spain5-Jul-05 18:43
David Spain5-Jul-05 18:43 

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.