|
-
Jul 22nd, 2001, 02:45 AM
#1
Thread Starter
Hyperactive Member
Subtraction
For some reason, I can't do this
Code:
ULARGE_INTEGER lpTotalBytesUsed, lpTotalNumberOfBytes, lpTotalNumberOfFreeBytes;
lpTotalBytesUsed = lpTotalNumberOfBytes - lpTotalNumberOfFreeBytes;
I get this:
--------------------Configuration: PieGraph - Win32 Debug--------------------
Compiling...
PIEGRAPH.cpp
C:\Windows\Desktop\Matt\Win32 C++\Chapt 5\PieGraph\PIEGRAPH.cpp(97) : error C2676: binary '-' : 'union _ULARGE_INTEGER' does not define this operator or a conversion to a type acceptable to the predefined operator
Error executing cl.exe.
PieGraph.exe - 1 error(s), 0 warning(s)
------------------------------------------------------------------------------------------
Any Ideas?
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Jul 22nd, 2001, 05:42 AM
#2
Monday Morning Lunatic
Code:
lpTotalBytesUsed.QuadPart = lpTotalNumberOfBytes.QuadPart - lpTotalNumberOfFreeBytes.QuadPart;
ULARGE_INTEGER is a union, not a single type. Look at the definition.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 22nd, 2001, 11:00 PM
#3
Thread Starter
Hyperactive Member
Thanx
I get it know... How do you find all this stuff out?? How can I find out the struct form of a ularge_integer without consulting MSDN?
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Jul 23rd, 2001, 02:04 AM
#4
Monday Morning Lunatic
Right-click on any identifier (within VC++, not sure about other IDEs) and go "Definition". That should pop up a message about browse info, press OK and it will recompile and when it's finished you'll go to the definition
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 23rd, 2001, 03:53 AM
#5
Hyperactive Member
Also...
One more tip from me...
When you get a compile error, click inside the window where it tells you what's going on with the compile proces. Click on the line with the error and press Enter. That will take you to the line where the error is...
-Emo
-=VB6 Enterprise Edition=-
-=VC++6Enterprise Edition=-
«¤E³m°O²™¤»
-
Jul 23rd, 2001, 11:04 AM
#6
Monday Morning Lunatic
Or double-click the line.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|