A
Anna Smidt
lf.lfHeight = - (int) (fabs (pt.y) / 10.0 + 0.5) ;
Error 1 error C2668: 'fabs' : ambiguous call to overloaded function
ezfont.cpp 47 stasm
I first thought that the compiler wants to fight with me because there
where some decimals missing, but it's already .0 and .5.
Also here an error "ambiguous call" is thrown...
lf.lfWidth = (int) (tm.tmAveCharWidth *
fabs (pt.x) / fabs (pt.y) + 0.5) ;
I understand that it's because it's a C function that I have converted
to C++ (at least I think so), but I don't know how to get it right.
Anna.
Error 1 error C2668: 'fabs' : ambiguous call to overloaded function
ezfont.cpp 47 stasm
I first thought that the compiler wants to fight with me because there
where some decimals missing, but it's already .0 and .5.
Also here an error "ambiguous call" is thrown...
lf.lfWidth = (int) (tm.tmAveCharWidth *
fabs (pt.x) / fabs (pt.y) + 0.5) ;
I understand that it's because it's a C function that I have converted
to C++ (at least I think so), but I don't know how to get it right.
Anna.