-
Ermmm. Sorry to waste your time (Truesteppers and that Victoria ***** are on the radio :rolleyes: ).
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.
-
Code:
HFONT MyVar;
unsiged int MyVar2;
MyVar = whatevervalue;
cout << (MyVar = MyVar2) << endl;
that converts MyVar to an Unsigned integer.
-
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.
-
A small typo:
-