#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# a stupid question..:)

Member Posts: 37
hey there...i have seen in many source codes about "DWORD" .What is it anyways??
and can anyone gimme an algorithm for a good encryption, also which is easy to understand.
ps: i already know xor algorithm...something else
"[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]

• Member Posts: 1,444
: hey there...i have seen in many source codes about "DWORD" .What is it anyways??
: and can anyone gimme an algorithm for a good encryption, also which is easy to understand.
: ps: i already know xor algorithm...something else
: "[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]
:
[blue]
A dword (double word)=4 bytes.
A "DWORD" is basically an integer that is 4 bytes.
[/blue]
• Member Posts: 154
YOUR QUESTIONS TITLE:- STUPID QUESTION ;-)
YOUR QUESTION :-WHAT IS A DWORD ANYWAY?

SO I THOUGHT LET ME BE THE FIRST STUPID ONE TO ANSWER
THIS.BUT BY THE TIME I WAS THINKING SOME GENTLEMAN ALLREADY
DID IT.NOW OFCOURSE HE IS NOT STUPID.THEREFORE I AM STILL
THE FIRST STUPID ONE TO ANSWER THIS.

[CODE]
DWORD IS MADE UP OF TWO WORDS
d=="double";
word=="word";
word is a collection of 16 bits;
collection of 8 bits is a byte;//collection of two bits is also
//a byte any plural bit make a byte
//if we choose too.
//but conventions we follow
//takes 8 bits to make a byte
//nevertheless! :-)

one single placeholder in a memory is BIT.
which will either be 1 or 0;
collection of 8 such bits we choose to call BYTE.
what should the collection of two bytes i.e
(1 byte==8 bits + 1 byte==8 bits)==2BYTES;
be called now! Scientist decided to name it WORD.therefore
(1 byte==8 bits + 1 byte==8 bits)==2BYTES or 1WORD;

Now they had 2 WORDS i.e
(1 WORD==16 bits + 1 WORD==16 bits)==2WORDS;
Scientist decided to name it DWORD.therefore
(1 WORD==16 bits + 1 WORD==16 bits)==2WORDS OR 1DWORD;

it is not that DWORD did not exit before it was named so.
A LONG data type is a 32 bit variable.
but it holds values from -2,147,483,648 to 2,147,483,647
because it holds negative values also it is a signed variable.
if we make it UNSIGNED LONG then it will hold the values from
0 to 4,294,967,295.which is actually the total of

2,147,483,647
+ 2,147,483,647
------------------
4 294 967 295
so simply not type few extra Alphabets namely:-
UNSIGNED LONG;they decided to call it a DWORD
hence they typedefed like this

typedef unsigned long DWORD;

AMAZING ISNT IT!

HERE ARE THE values that each data type can hold
==================================================================
Type Length Range

unsigned char 8 bits 0 to 255
char 8 bits -128 to 127
enum 16 bits -32,768 to 32,767
unsigned int 16 bits 0 to 65,535
short int 16 bits -32,768 to 32,767
int 16 bits -32,768 to 32,767
unsigned long 32 bits 0 to 4,294,967,295
long 32 bits -2,147,483,648 to 2,147,483,647
float 32 bits 3.4 * (10**-38) to 3.4 * (10**+38)
double 64 bits 1.7 * (10**-308) to 1.7 * (10**+308)
long double 80 bits 3.4 * (10**-4932) to 1.1 * (10**+4932)
=================================================================
actually i am explaing myself so thankyou for brushing my memory
i am a beginner! :-)
[/CODE]

• Member Posts: 511
: hey there...i have seen in many source codes about "DWORD" .What is it anyways??
: and can anyone gimme an algorithm for a good encryption, also which is easy to understand.
: ps: i already know xor algorithm...something else
: "[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]
:

DWORD (known as Double Word) is an amount of data equal to 4 bytes or 32 bits. For example, if you wanted to copy a double word from memory to registry, Youd do:

You dont have to understand, I just gave a (pretty bad) example in another language.
Hope you got the general idea!
Oh, btw you can declare a variable of such size in C like this:

Long some_var; //Where var is the variable

Someone else will need to cover the encryption part
• Member Posts: 37
hey thanx...i got it!
moreover...actually i wanted some idea for my project! i'm planning to do a encryption app. is it worth it...or do u have any other gud idea?
"[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]

• Member Posts: 154
: hey thanx...i got it!
: moreover...actually i wanted some idea for my project! i'm planning to do a encryption app. is it worth it...or do u have any other gud idea?
: "[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]
:
:
IS IT WORTH IT?
WHAT worth are you asking.THE WORTH of making an ENCRYTION app
OR trying DWORD in your ENCRYTION app.

YES I HAVE A BETTER IDEA

MAKE A APPLICATION that encrytes some NASA SETTALITE.;-)

WORTH IT? how now :-)

• Member Posts: 9,765 ✭✭✭
: hey there...i have seen in many source codes about "DWORD" .What is it anyways??
: and can anyone gimme an algorithm for a good encryption, also which is easy to understand.
: ps: i already know xor algorithm...something else
: "[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]
:

A DWORD is Microsoft's macro for an unsigned long
[code]
#define unsigned long DWORD
[/code]

There are hundreds of these defined in windws.h

• Member Posts: 37
c'mon...what will the nasa ppl do if i do their work ;-)
actually i have learnt the complete c++ ....so, do u have any gud idea for my final year project? need not be encryption only , u know!
something other than those pesky library management app and all....something really interesting
"[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]

• Member Posts: 154
: c'mon...what will the nasa ppl do if i do their work ;-)
: actually i have learnt the complete c++ ....so, do u have any gud idea for my final year project? need not be encryption only , u know!
: something other than those pesky library management app and all....something really interesting
: "[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]
:
: LEARNT C:-)mplete c++...
WHEN is that g:-)ing to happen with me.
YES a BETTER IDEA!!! MAKE chess PROGRAMM using SOUND
AND GRAPHICS MULTITASKING classes templeates.bring internet
connectivity to it.
IT WILL bring out all the logical aspects of programming
not that i have done IT.
THE BEST PROGRAMM I HAVE WRITTEN IN
c++ F:-)LL:-)WS
#include
void main()
{
cout<<"hey h:-)w are y:-dou doing";
}
BUT SINCE YOU ARE SO KEEN
:-)N BETTER IDEAS.

BUT R E M E M B E R MAKING it would be
1)TORTURING
2)IrriTating
3)migraining
4)no night sleep either
A N D PESKY T:-):-)

SO BEST of LUCK SIR FOR aLL FOUR OF THEM ;-)

can you give me a comentry on using extern
because i am having reall problem with it.
what is this extern thing.THANKS

• Member Posts: 1,444
: : c'mon...what will the nasa ppl do if i do their work ;-)
: : actually i have learnt the complete c++ ....so, do u have any gud idea for my final year project? need not be encryption only , u know!
: : something other than those pesky library management app and all....something really interesting
: : "[b]The[blue] GEEK[/blue] Shall Inherit The Earth" ;-) [/b]
: :
: : LEARNT C:-)mplete c++...
: WHEN is that g:-)ing to happen with me.
: YES a BETTER IDEA!!! MAKE chess PROGRAMM using SOUND
: AND GRAPHICS MULTITASKING classes templeates.bring internet
: connectivity to it.
: IT WILL bring out all the logical aspects of programming
: not that i have done IT.
: THE BEST PROGRAMM I HAVE WRITTEN IN
: c++ F:-)LL:-)WS
: #include
: void main()
: {
: cout<<"hey h:-)w are y:-dou doing";
: }
: BUT SINCE YOU ARE SO KEEN
: :-)N BETTER IDEAS.
:
: BUT R E M E M B E R MAKING it would be
: 1)TORTURING
: 2)IrriTating
: 3)migraining
: 4)no night sleep either
: A N D PESKY T:-):-)
:
: SO BEST of LUCK SIR FOR aLL FOUR OF THEM ;-)
:
:
: can you give me a comentry on using extern
: because i am having reall problem with it.
: what is this extern thing.THANKS
:
[blue]
Good chess AI can be extremily complex to emulate.
Although a game might not be a bad idea. It uses
many aspects of programming: video/sound/data structures/
Code Design/ and a whole lot more. Mabey even 3d if