Original Post
I have the three function prototypes:
void drawText(char * str, int x, int y, COLORREF crcolor, int len);
void drawText(GString gstr, int x, int y, COLORREF crcolor);
void drawText(int num, int x, int y, COLORREF crcolor);
and corresponding functions.
However, when I try to use the last one like so:
int num=5;
drawText(num, x+270, y+30, TXT_STATIC, 2);
it doesn''t work, giving me the error:
error C2665: ''drawText'' : none of the 3 overloads can convert parameter 1 from type ''int''
which confuses me a lot, because i do have an overload. The other two work though.
Any help on this?