By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,922 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,922 IT Pros & Developers. It's quick & easy.

DWORD BYTE

P: n/a
DWORD BYTE in MFC programming,when we will use the type?
there have char * and long int ,why do we need them?
thank you!

Jan 2 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a

lo*********@yahoo.com.cn napsal:
DWORD BYTE in MFC programming,when we will use the type?
there have char * and long int ,why do we need them?
thank you!
Such type should be used as parameter for all functions which accept
it.

Why? You should ask on some MFC forum.
>From my experiences the biggest challenge in process of designing any
library is to provide new integer types, although it is usually
absolutely unnecessary (exception may be processing of some binary
data). Such types aren't usually placed in any project/library specific
namespace, so it usualy contains some prefixes to distinguish library
32-bit integer from other 32-bit integers (like ABCv37_INT32).
>From my point of view it is in 95% of cases nonsense, but it is real
situation and we have to live with it.

Jan 2 '07 #2

P: n/a
lo*********@yahoo.com.cn wrote:
DWORD BYTE in MFC programming,when we will use the type?
there have char * and long int ,why do we need them?
Microsoft likes to give existing things new names.
Jan 2 '07 #3

P: n/a

lo*********@yahoo.com.cn wrote:
DWORD BYTE in MFC programming,when we will use the type?
there have char * and long int ,why do we need them?
thank you!
Microsoft decided it was too easy to write portable code, so it helped
us out by renaming all the primitives...

Jan 2 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.