GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering


GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 08-22-2013, 21:38   #16 (permalink)
No Life Poster
 
dzunlocker's Avatar
 
Join Date: Aug 2004
Location: With old & new friends
Age: 49
Posts: 691
Member: 79640
Status: Offline
Sonork: 1577251
Thanks Meter: 238

#6 - asked about a c++ statement : *(_DWORD *)a3 = 12;
#9 - answered than the pointer a3 pointer length is 4 bytes.

I commented #9 about pointer size an said that it is OS dependent.
So comment my comment is about pointer size and not about algo itself.

Now, a question what will be the size of a pointer in win32 and what will be the size of a pointer in Win-64 ?

answer :
64-bit Windows Data Types Compared to 32-bit Windows Data Types - RAD Studio XE3

Code:
Pointer types
On 64-bit Windows, all pointer types are 8 bytes, twice the size on 32-bit Windows.
Even if you are sometimes "rude" and "aggressive" in your comments, I always read with great attention and pleasure. Therefore I will not comment on the sentence Why both talking big stupidityes?

regards to all !
  Reply With Quote
Old 08-22-2013, 21:39   #17 (permalink)
Moderator
 
Join Date: May 1999
Location: Blagoevgrad, Bulgaria
Age: 52
Posts: 1,056
Member: 73
Status: Offline
Thanks Meter: 537
Donate money to this user
Simple arithmetics:

Byte - 1

word = 2 bytes = (2 x byte)

dword (double word) = 2 x word = 2 x (2 x byte) = 4 bytes.

I not know os or platform where:

DWORD (4 bytes)= 8 bytes.
  Reply With Quote
Old 08-22-2013, 21:42   #18 (permalink)
No Life Poster
 
dzunlocker's Avatar
 
Join Date: Aug 2004
Location: With old & new friends
Age: 49
Posts: 691
Member: 79640
Status: Offline
Sonork: 1577251
Thanks Meter: 238
Quote:
Originally Posted by orbita View Post
Thanks victor , yes is like this..... and as usually your posts is very usefull.


@dzunlocker your explanation is extremly usefull, but not need to teach me what meen dword .

2.2.9 DWORD
I am not a teacher. I just wrote a message about pointers in a a public forum.

If this is private club, let us know !
  Reply With Quote
Old 08-22-2013, 21:44   #19 (permalink)
No Life Poster
 
dzunlocker's Avatar
 
Join Date: Aug 2004
Location: With old & new friends
Age: 49
Posts: 691
Member: 79640
Status: Offline
Sonork: 1577251
Thanks Meter: 238
sizeof (DWORD *) ???
  Reply With Quote
Old 08-22-2013, 21:44   #20 (permalink)
Moderator
 
Join Date: May 1999
Location: Blagoevgrad, Bulgaria
Age: 52
Posts: 1,056
Member: 73
Status: Offline
Thanks Meter: 537
Donate money to this user
Quote:
Originally Posted by dzunlocker View Post
#6 - asked about a c++ statement : *(_DWORD *)a3 = 12;
#9 - answered than the pointer a3 pointer length is 4 bytes.

I commented #9 about pointer size an said that it is OS dependent.
So comment my comment is about pointer size and not about algo itself.

Now, a question what will be the size of a pointer in win32 and what will be the size of a pointer in Win-64 ?

answer :
64-bit Windows Data Types Compared to 32-bit Windows Data Types - RAD Studio XE3

Code:
Pointer types
On 64-bit Windows, all pointer types are 8 bytes, twice the size on 32-bit Windows.
Even if you are sometimes "rude" and "aggressive" in your comments, I always read with great attention and pleasure. Therefore I will not comment on the sentence Why both talking big stupidityes?

regards to all !

"agresive"? "rude"? ... watching different movies.


*(_DWORD *)a3 = 12;

here you have strictly TYPE CONVERSION -> _DWORD.

where you see 8 bytes?
  Reply With Quote
Old 08-22-2013, 22:03   #21 (permalink)
Product Manager
 
orbita's Avatar
 
Join Date: Apr 2002
Location: nckDongle
Posts: 13,325
Member: 11170
Status: Offline
Sonork: 1603694
Thanks Meter: 6,944
Quote:
Originally Posted by dzunlocker View Post
sizeof (DWORD *) ???
I'am gived you microsoft site as referince.
Try read .
And here we talk about specific algo.

DWORD is always 32 bits (unsigned).
If you have other source then microsoft what explain other , give link, i'am always ready to learn new things.

To not start offtopic messages here, you can send me link in pm.
This become a discussion just for discussion and not have any finalisation.
  Reply With Quote
Old 08-26-2013, 09:59   #22 (permalink)
Freak Poster
 
YuMERA's Avatar
 
Join Date: Feb 2004
Location: Serbia
Posts: 233
Member: 55980
Status: Offline
Thanks Meter: 78
A DWORD is a 32-bit unsigned integer (range: 0 through 4294967295 decimal). Because a DWORD is unsigned, its first bit (Most Significant Bit (MSB)) is not reserved for signing.
This type is declared as follows:

typedef unsigned long DWORD, *PDWORD, *LPDWORD;

2.2.9 DWORD
  Reply With Quote
Old 09-13-2013, 21:34   #23 (permalink)
No Life Poster
 
zulea's Avatar
 
Join Date: Jul 2001
Location: Inside Raskal pocket
Age: 54
Posts: 3,316
Member: 5325
Status: Offline
Thanks Meter: 8,448
Quote:
Originally Posted by Victor View Post
Simple arithmetics:

Byte - 1

word = 2 bytes = (2 x byte)

dword (double word) = 2 x word = 2 x (2 x byte) = 4 bytes.

I not know os or platform where:

DWORD (4 bytes)= 8 bytes.
Seems your knowledges are verry limited.
You can start here at Wikipedia:
Integer (computer science) - Wikipedia, the free encyclopedia

Just for your info, on any 64 *nix system, any ANSI C "DWORD" ( = unsigned long) will be 64 bits = 8 bytes !

Also sizeof(DWORD *) is TOTALLY DIFFERENT on 32 bit and 64 bit systems (what Dzunlocker asked and reply is totally true).

Just one hint, no more be so limited ... just be opened to knowledge (just look at Orbita).

BR,
Zulea
  Reply With Quote
The Following 5 Users Say Thank You to zulea For This Useful Post:
Show/Hide list of the thanked
Old 09-14-2013, 06:25   #24 (permalink)
Moderator
 
Join Date: May 1999
Location: Blagoevgrad, Bulgaria
Age: 52
Posts: 1,056
Member: 73
Status: Offline
Thanks Meter: 537
Donate money to this user
Quote:
Originally Posted by zulea View Post
Seems your knowledges are verry limited.
You can start here at Wikipedia:
Integer (computer science) - Wikipedia, the free encyclopedia

Just for your info, on any 64 *nix system, any ANSI C "DWORD" ( = unsigned long) will be 64 bits = 8 bytes !

Also sizeof(DWORD *) is TOTALLY DIFFERENT on 32 bit and 64 bit systems (what Dzunlocker asked and reply is totally true).

Just one hint, no more be so limited ... just be opened to knowledge (just look at Orbita).

BR,
Zulea
@Zulea

Get theme first and then talk.

Here discussion is for one line from pseudocode:

*(_DWORD *)a3 = 12;

1. Nobody talk for 64 bit sytems. dzunlocker for not known reasons (maybe to show how many know) NOT UNDERSTAND FOR WHAT WE TALK .... meaning this line from pseudocode.

same as: DIFFERENCES IN CROCODILE ARE DOUBLE LONG FROM GREEN

...ofcourse on 64bit systems pointer is different from 32bit system.

2. Many ppls trying to say on dzunlocker where see 8 bytes???? But for me not success. (I set guilty to "rude" ... etc)

3. Level for my knoledge can give if you know me.


Regards: Victor
  Reply With Quote
Reply

Bookmarks


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 On


 



All times are GMT +1. The time now is 01:52.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.26501 seconds with 9 queries

SEO by vBSEO