Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to use DWORDLONG in Solaris x86 32-bit?

Posted on 2002-03-28
4
Medium Priority
?
330 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 16

Expert Comment

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

Accepted Solution

by:
Peter Kwan earned 400 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

604 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