Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > DWORD BYTE

Reply
Thread Tools

DWORD BYTE

 
 
lovesehuang@yahoo.com.cn
Guest
Posts: n/a
 
      01-02-2007
DWORD BYTE in MFC programming,when we will use the type?
there have char * and long int ,why do we need them?
thank you!

 
Reply With Quote
 
 
 
 
Rolf Magnus
Guest
Posts: n/a
 
      01-02-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) 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.
 
Reply With Quote
 
 
 
 
Ondra Holub
Guest
Posts: n/a
 
      01-02-2007

(E-Mail Removed) 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.

 
Reply With Quote
 
bjeremy
Guest
Posts: n/a
 
      01-02-2007

(E-Mail Removed) 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...

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to transfer a DWORD from a function? monkeydragon C++ 7 12-14-2005 07:15 AM
convert std::string to (byte*, DWORD) Khuong Dinh Pham C++ 16 08-30-2005 10:34 PM
Is it legal to type cast to DWORD* ??? Denis Remezov C++ 7 07-10-2004 04:44 PM
How do you display DWORD & strings in an Edit Box Xanax C++ 20 09-10-2003 10:48 AM
DWORD date value Lee K C++ 6 07-17-2003 11:19 PM



Advertisments