Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Automatic Bluetooth device selection Pin
Henry miller1-Jul-04 3:27
Henry miller1-Jul-04 3:27 
GeneralRe: Automatic Bluetooth device selection Pin
LittleYellowBird1-Jul-04 4:30
LittleYellowBird1-Jul-04 4:30 
Generaltype size Pin
Kamis1-Jul-04 0:02
Kamis1-Jul-04 0:02 
GeneralRe: type size [edited] Pin
bneacetp1-Jul-04 0:17
bneacetp1-Jul-04 0:17 
GeneralRe: type size Pin
Antony M Kancidrowski1-Jul-04 0:29
Antony M Kancidrowski1-Jul-04 0:29 
GeneralNo - Int is signed Pin
normanS1-Jul-04 2:38
normanS1-Jul-04 2:38 
GeneralRe: No - Int is signed Pin
Antony M Kancidrowski1-Jul-04 5:15
Antony M Kancidrowski1-Jul-04 5:15 
GeneralRe: type size Pin
Graham Bradshaw1-Jul-04 0:43
Graham Bradshaw1-Jul-04 0:43 
Kamis wrote:
what does it depend on

The ANSI standards do not impose any restrictions on the size of short, int or long data types, and for portable code, you should make no assumptions. Famously, some (many) years ago, the Microsoft C++ compiler changed the size of an int from 2 bytes to 4 bytes, and broke all sorts of code (including a lot of internal MS stuff), that had hard-coded the assumption that sizeof(int) was 2.

In the Windows world, if you need a guaranteed size, you can use BYTE, WORD and DWORD data types.

If you need code to be portable, you have to make use of sizeof() and all of the #defines in limits.h and/or other header files.
GeneralRe: type size Pin
Kamis1-Jul-04 1:25
Kamis1-Jul-04 1:25 
GeneralRe: type size Pin
Henry miller1-Jul-04 3:04
Henry miller1-Jul-04 3:04 
GeneralRe: Searching for Font (GDI+) Pin
Mike Dimmick1-Jul-04 0:13
Mike Dimmick1-Jul-04 0:13 
GeneralRe: Searching for Font (GDI+) Pin
Slava20001-Jul-04 0:45
Slava20001-Jul-04 0:45 
Generaldisplaying the mem address of chars + char arrays Pin
Member 121044230-Jun-04 23:34
Member 121044230-Jun-04 23:34 
GeneralRe: displaying the mem address of chars + char arrays Pin
Yogesh Kshatriya1-Jul-04 0:25
Yogesh Kshatriya1-Jul-04 0:25 
GeneralRe: displaying the mem address of chars + char arrays Pin
Member 12104421-Jul-04 1:37
Member 12104421-Jul-04 1:37 
GeneralRe: displaying the mem address of chars + char arrays Pin
Yogesh Kshatriya1-Jul-04 3:02
Yogesh Kshatriya1-Jul-04 3:02 
GeneralRe: displaying the mem address of chars + char arrays Pin
Member 12104422-Jul-04 0:31
Member 12104422-Jul-04 0:31 
Generalget list of tables Pin
Yulianto.30-Jun-04 22:59
Yulianto.30-Jun-04 22:59 
GeneralRe: get list of tables Pin
Antony M Kancidrowski1-Jul-04 0:23
Antony M Kancidrowski1-Jul-04 0:23 
GeneralRe: get list of tables Pin
David Crow1-Jul-04 2:34
David Crow1-Jul-04 2:34 
GeneralUsing the Clipboard Pin
tunerica30-Jun-04 22:45
tunerica30-Jun-04 22:45 
GeneralRe: Using the Clipboard Pin
jmkhael30-Jun-04 22:54
jmkhael30-Jun-04 22:54 
GeneralRe: Using the Clipboard Pin
tunerica30-Jun-04 23:12
tunerica30-Jun-04 23:12 
GeneralRe: Using the Clipboard Pin
Mike Dimmick1-Jul-04 0:26
Mike Dimmick1-Jul-04 0:26 
GeneralTouch Screen Help! Pin
Renjith Ramachandran30-Jun-04 22:41
Renjith Ramachandran30-Jun-04 22:41 

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.