Solved

How to use DWORDLONG in Solaris x86 32-bit?

Posted on 2002-03-28
4
324 Views
Last Modified: 2013-12-05
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
Comment
Question by:iProgram
  • 3
4 Comments
 
LVL 16

Expert Comment

by:Peter Kwan
ID: 6904608
Try "long long".
0
 
LVL 16

Accepted Solution

by:
Peter Kwan earned 100 total points
ID: 6904613
Sorry, it should be "unsigned long long"
0
 
LVL 1

Author Comment

by:iProgram
ID: 6904616
Do you mean "typedef unsigned long long  DWORDLONG"

But it could not works in win32, borland c++. Can it work in Solaris?
0
 
LVL 16

Expert Comment

by:Peter Kwan
ID: 6904618
Yes. It does not work in Win32 (since there is no such type defined), but in Solaris, I have checked yes.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question