|
-
Aug 20th, 2000, 12:54 PM
#1
Thread Starter
Fanatic Member
Ermmm. Sorry to waste your time (Truesteppers and that Victoria ***** are on the radio ).
How do you convert a value of one type (hFont in this case) to another type (unsigned int). There's got to be a way to do this, but could somebody tell me?
parksie, Meg Ryan A-Tron? Anybody. Pleeeeeeeeeeaaaaaasssssseeeeee.
-
Aug 20th, 2000, 01:41 PM
#2
Code:
HFONT MyVar;
unsiged int MyVar2;
MyVar = whatevervalue;
cout << (MyVar = MyVar2) << endl;
that converts MyVar to an Unsigned integer.
-
Aug 21st, 2000, 01:51 PM
#3
Monday Morning Lunatic
Why do you want to convert a font handle to an integer?
Anyway, though, to convert use this:
Code:
HFONT i;
long i = (long)i;
Although in a lot of cases the compiler will choke on pointer->integer conversions.
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
-
Aug 21st, 2000, 03:28 PM
#4
Thread Starter
Fanatic Member
A small typo:
-
Aug 21st, 2000, 03:34 PM
#5
Monday Morning Lunatic
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
|