Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert a byte array to decimal integer? Pin
Lim Bio Liong18-Oct-04 22:36
Lim Bio Liong18-Oct-04 22:36 
AnswerRe: How to convert a byte array to decimal integer? Pin
David Crow19-Oct-04 2:49
David Crow19-Oct-04 2:49 
GeneralRe: How to convert a byte array to decimal integer? Pin
ting66818-Oct-04 22:57
ting66818-Oct-04 22:57 
GeneralRe: How to convert a byte array to decimal integer? Pin
Lim Bio Liong19-Oct-04 18:00
Lim Bio Liong19-Oct-04 18:00 
GeneralRe: How to convert a byte array to decimal integer? Pin
Lim Bio Liong18-Oct-04 23:18
Lim Bio Liong18-Oct-04 23:18 
GeneralRe: How to convert a byte array to decimal integer? Pin
Lim Bio Liong18-Oct-04 23:31
Lim Bio Liong18-Oct-04 23:31 
GeneralRe: How to convert a byte array to decimal integer? Pin
ting66818-Oct-04 23:32
ting66818-Oct-04 23:32 
GeneralRe: How to convert a byte array to decimal integer? Pin
Lim Bio Liong18-Oct-04 23:46
Lim Bio Liong18-Oct-04 23:46 
Hello Ting,

The Intel platform is what we commonly refer to as the PC (personal computer). The Macintosh is not the Intel platform (the Mac uses the Motorolla chip, last time I remember).

WinXP, 98, ME all run on the PC and so they do run on the Intel platform.

The Pocket PC 2003 is the OS behind PDAs which do not use the Intel chip. Even if they do, they may not be 32-bit based.

One simple but effective way to check out the byte size of an integer in whatever target platform you are working on is to use the "sizeof" operator. E.g. :

memcpy (ucArray, (void*)((unsigned char*)&iInt), sizeof(iInt));

notice my use of sizeof(iInt) instead of hardcoding this to 4.


Regards,
Bio.

QuestionCan't change the font and text color of an edit box using CFontDialog ? Pin
VCSharp00718-Oct-04 20:47
VCSharp00718-Oct-04 20:47 
AnswerRe: Can't change the font and text color of an edit box using CFontDialog ? Pin
22491718-Oct-04 21:26
22491718-Oct-04 21:26 
GeneralMaximize MDI Child window when Main window is maximized Pin
ledallam18-Oct-04 20:45
ledallam18-Oct-04 20:45 
GeneralRe: Maximize MDI Child window when Main window is maximized Pin
Azghar Hussain18-Oct-04 22:38
professionalAzghar Hussain18-Oct-04 22:38 
GeneralFtpOpenFile Error Pin
antonimasso18-Oct-04 20:41
antonimasso18-Oct-04 20:41 
General2 DirectX questions Pin
Cedric Moonen18-Oct-04 20:26
Cedric Moonen18-Oct-04 20:26 
Questionhow can i used this struct. Pin
maranatha18-Oct-04 20:26
maranatha18-Oct-04 20:26 
AnswerRe: how can i used this struct. Pin
bryce18-Oct-04 20:36
bryce18-Oct-04 20:36 
AnswerRe: how can i used this struct. Pin
Cedric Moonen18-Oct-04 20:47
Cedric Moonen18-Oct-04 20:47 
GeneralRe: how can i used this struct. Pin
Anonymous19-Oct-04 14:41
Anonymous19-Oct-04 14:41 
AnswerRe: how can i used this struct. Pin
David Crow19-Oct-04 2:52
David Crow19-Oct-04 2:52 
GeneralRe: how can i used this struct. Pin
Anonymous19-Oct-04 14:39
Anonymous19-Oct-04 14:39 
GeneralRe: how can i used this struct. Pin
David Crow20-Oct-04 3:00
David Crow20-Oct-04 3:00 
GeneralTab control with mdi Pin
vc-programmer-18-Oct-04 19:27
vc-programmer-18-Oct-04 19:27 
GeneralMDI with check control Pin
vc-programmer-18-Oct-04 19:21
vc-programmer-18-Oct-04 19:21 
GeneralRe: MDI with check control Pin
Sujan Christo18-Oct-04 19:56
Sujan Christo18-Oct-04 19:56 
QuestionDirectshow - can a filter detect that the user is currently seeking? Pin
Indrawati18-Oct-04 19:15
Indrawati18-Oct-04 19:15 

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.