Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • 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 KwanAnalyst ProgrammerCommented:
Try "long long".
0
 
Peter KwanAnalyst ProgrammerCommented:
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 KwanAnalyst ProgrammerCommented:
Yes. It does not work in Win32 (since there is no such type defined), but in Solaris, I have checked yes.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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