Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConverting int to string Pin
J_E_D_I18-Mar-08 9:19
J_E_D_I18-Mar-08 9:19 
GeneralRe: Converting int to string Pin
Maxwell Chen18-Mar-08 9:27
Maxwell Chen18-Mar-08 9:27 
GeneralRe: Converting int to string Pin
Mark Salsbery18-Mar-08 9:41
Mark Salsbery18-Mar-08 9:41 
GeneralRe: Converting int to string Pin
Joe Woodbury18-Mar-08 15:57
professionalJoe Woodbury18-Mar-08 15:57 
GeneralRe: Converting int to string Pin
ThatsAlok18-Mar-08 19:59
ThatsAlok18-Mar-08 19:59 
QuestionIs it okay to cast from int to unsigned char *? Pin
ChemmieBro18-Mar-08 8:54
ChemmieBro18-Mar-08 8:54 
AnswerRe: Is it okay to cast from int to unsigned char *? Pin
Mark Salsbery18-Mar-08 9:04
Mark Salsbery18-Mar-08 9:04 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
ChemmieBro18-Mar-08 9:20
ChemmieBro18-Mar-08 9:20 
No, that's not a typo.
The ByteArray is actually a different array type, but is still an array of unsigned char.

If it is okay to get the IntegerValue into the unsigned char[4] then I'm okay.

so...
CharArray = new Unsigned Char [4];
CharArray = (unsigned char*)&IntegerValue ;

That should still be fine. The 4 Unsigned Char bytes will then be populated with the bytes from the integer.
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
Mark Salsbery18-Mar-08 9:24
Mark Salsbery18-Mar-08 9:24 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
ChemmieBro18-Mar-08 9:36
ChemmieBro18-Mar-08 9:36 
AnswerRe: Is it okay to cast from int to unsigned char *? Pin
David Crow18-Mar-08 9:33
David Crow18-Mar-08 9:33 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
Maxwell Chen18-Mar-08 9:36
Maxwell Chen18-Mar-08 9:36 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
ChemmieBro18-Mar-08 9:38
ChemmieBro18-Mar-08 9:38 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
Maxwell Chen18-Mar-08 9:49
Maxwell Chen18-Mar-08 9:49 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
Mark Salsbery18-Mar-08 10:21
Mark Salsbery18-Mar-08 10:21 
GeneralRe: Is it okay to cast from int to unsigned char *? Pin
ramana.g18-Mar-08 17:30
ramana.g18-Mar-08 17:30 
QuestionAutomation Server Questions Pin
garyflet18-Mar-08 8:53
garyflet18-Mar-08 8:53 
QuestionHow to read Swedish word correctly Pin
njhy18-Mar-08 7:54
njhy18-Mar-08 7:54 
QuestionRe: How to read Swedish word correctly Pin
Maxwell Chen18-Mar-08 8:37
Maxwell Chen18-Mar-08 8:37 
GeneralRe: How to read Swedish word correctly Pin
njhy18-Mar-08 8:42
njhy18-Mar-08 8:42 
GeneralRe: How to read Swedish word correctly Pin
Mark Salsbery18-Mar-08 9:07
Mark Salsbery18-Mar-08 9:07 
GeneralRe: How to read Swedish word correctly Pin
Randor 18-Mar-08 10:52
professional Randor 18-Mar-08 10:52 
GeneralRe: How to read Swedish word correctly Pin
Mark Salsbery18-Mar-08 11:23
Mark Salsbery18-Mar-08 11:23 
GeneralRe: How to read Swedish word correctly Pin
Randor 18-Mar-08 12:57
professional Randor 18-Mar-08 12:57 
GeneralRe: How to read Swedish word correctly Pin
Mark Salsbery18-Mar-08 12:58
Mark Salsbery18-Mar-08 12:58 

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.