_DWORD

  • Thread starter Thread starter Tim Daim
  • Start date Start date
T

Tim Daim

Hello.

Does anybody know what this conversion (?) does? I don't understand the
underline in front of the DWORD.

Thank you.
Tim
 
I only have this line and no comments or explanations coming with it :(

iVar = (int *)(uInt1 + *(_DWORD *)uInt2);
 
Tim Daim said:
I only have this line and no comments or explanations coming with it :(

iVar = (int *)(uInt1 + *(_DWORD *)uInt2);

Is there no surrounding code from which you can determine the types of each
of the variables? That would help. Also look for a #define or a typedef
which creates _DWORD. (DWORD is itself not a built-in type). However, this
code is non-portable because the standard requires that all identifiers
starting with underscore + capital letter are reserved for the compiler
vendor for use in internal implementation details of their libraries.
Besides that it looks like it was designed to be confusing. The variable
names are certainly atrocious and misleading.
 
Okay, there is a documentation, but I don't really understand it yet.
Can you tell me what they mean when they write the following in the
documentation?
---------
Below is the list of supported keywords. If your header files happen to have
an unsupported keyword, you take one of the following actions:

- edit the input files and remove the unsupported keywords
- use #define to replace or hide the unsupported keywords
- use the -D command line switch for the same purpose

__cdecl do this struct _WORD
__pascal if void switch _DWORD
__stdcall _es break default _QWORD
__fastcall _cs class mutable _OWORD
__thiscall _ss const private _UNKNOWN
__usercall _ds float typedef __spoils
 
Tim said:
Okay, there is a documentation, but I don't really understand it yet.
Can you tell me what they mean when they write the following in the
documentation?

It means you're in a newsgroup for the Microsoft C++ compiler, but asking
questions about somebody else's compiler?

This is the list of keywords for the Microsoft compiler:
http://msdn.microsoft.com/en-us/library/2e6a4at9.aspx

As you can see, no _DWORD.

If you're going to get any help whatsoever you have to at least say what
you're talking about. Of course it would be best to find a newsgroup or
forum that actually addresses the product you are using.
 
Back
Top