Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / what is a dword??

Author
Message
kozma_11
21
Years of Service
User Offline
Joined: 17th Sep 2003
Location: Scotland
Posted: 26th Sep 2003 13:44
I probably look stupid but could someone explain what dword is?? And is it available in darkbasic (not dbp)

Cheers

El Presidente
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 26th Sep 2003 13:50 Edited at: 26th Sep 2003 13:50
A word is 2 bytes, a Dword or Double-Word is 4 bytes. Dwords are commonly used for integer values, smaller ranges can use bytes or words, but I think anything below -32768 and above +32768 needs to be a Dword, a common example would be a 32-bit colour value.

I reckon DB supports them when loading or saving files, but as a default, Dword would be used on any integer value anyway.


Van-B

My cats breath smells of cat food.
MagiKnight
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location:
Posted: 26th Sep 2003 13:57
A dword is a group of 32 bits

MMMMMM Low level programmimg...
MagiKnight
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location:
Posted: 26th Sep 2003 13:58
lol you beat me to it Van B

MMMMMM Low level programmimg...
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th Sep 2003 21:05
yes dword is valid in DBP

dwoMyVariable as dword

-RUST-
Sedate Solution
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location:
Posted: 27th Sep 2003 00:16
Bit
1
nibble
1111
byte
11111111
word
1111111111111111
double word
11111111111111111111111111111111

A size Comparison for beginners ! ! !

Login to post a reply

Server time is: 2024-09-21 01:05:56
Your offset time is: 2024-09-21 01:05:56