Solved

How to use DWORDLONG in Solaris x86 32-bit?

Posted on 2002-03-28
4
323 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
Comment Utility
Try "long long".
0
 
LVL 16

Accepted Solution

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

Author Comment

by:iProgram
Comment Utility
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
Comment Utility
Yes. It does not work in Win32 (since there is no such type defined), but in Solaris, I have checked yes.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now