473,490 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DWORD BYTE

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
3 5980

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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4565
by: Paul | last post by:
Hi, Please somebody clarify this following for me: I am writing my own data packets to a binary file. Each packet I write to the file is of equal length and format. For example each packet...
7
4336
by: __PPS__ | last post by:
Actually what I mean is that - if I have some memory buffer, lets say char a; and then I do like this: DWORD num = 0x1234; *(DWORD*)a = num; (1) *(DWORD*)(a+1) = num; (2) either...
16
16384
by: Khuong Dinh Pham | last post by:
I have the contents of an image of type std::string. How can I make a CxImage object with this type. The parameters to CxImage is: CxImage(byte* data, DWORD size) Thx in advance
7
4122
by: John J. Hughes II | last post by:
I need to save a DWORD to the sql server, the below posts an error, any suggestions on what I am doing wrong. I have the column in the sql server defined as an int since unsigned int is not valid....
1
4685
by: Gabest | last post by:
Running this piece of code while having the sse optimization turned on (vcnet2003), something really strange happens I cannot explain. Without sse it is giving me the right results. float f =...
3
6101
by: Diogo Alves - Software Developer | last post by:
Hi I would like to create a struct like this on c# but I don't know how.... here it goes byte: dataid dword: datasize byte: data this means that I want to store the byte an id, byte the...
7
3620
by: monkeydragon | last post by:
how to would you transfer a DWORD variable from inside of a function to the caller ex. InvokeProcessData(LPDWORD prtDW) { ... // we have created, initialized and processed // dword variable...
4
13005
by: Virajitha Sarma | last post by:
Hi, I have a code in C which i am rewritting it in C#. I am facing problem with the following two lines : char *cipher; (DWORD*)cipher(C) and (uint*)cipher(C#) are giving different values...
2
5073
by: Paul Harvey | last post by:
Hi, I have some VB6 code that calls unmanaged DLLs, and I am converting it to C#. There's a couple of structs I need to define. I've had no problems with this one: Public Type A sz(128) As...
0
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.