Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 331
  • Last Modified:

How to use DWORDLONG in Solaris x86 32-bit?

My program which uses DOWRDLONG works well in win32. But it could not compile in Solaris  with GCC.

This program is an ANCI C++ program.

I found the following code in Win32 Head file:

typedef unsigned __int64  DWORDLONG;

Now, what is the data type of DWORDLONG in Solaris?

some codes in my program

typedef unsigned __int64  DWORDLONG;

...
DWORDLONG dwl=1;
dwl<<=32;

...
return;
//OK in win32 with Borland C++5.5 but produced errors when attempted to compile with gcc in Solaris :(

0
iProgram
Asked:
iProgram
  • 3
1 Solution
 
Peter KwanCommented:
Try "long long".
0
 
Peter KwanCommented:
Sorry, it should be "unsigned long long"
0
 
iProgramAuthor Commented:
Do you mean "typedef unsigned long long  DWORDLONG"

But it could not works in win32, borland c++. Can it work in Solaris?
0
 
Peter KwanCommented:
Yes. It does not work in Win32 (since there is no such type defined), but in Solaris, I have checked yes.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now