eccolo qui:
DrawText (hdc,"salve raga!", -1, &rc,DT_SINGLELINE );
Tutto ok!
////////////////////////
char a[]="SALVE RAGA!!!";
DrawText (hdc,a, -1, &rc,DT_SINGLELINE );
Tutto ok!
////////////////////////
int a=5;
DrawText (hdc, a, -1, &rc,DT_SINGLELINE );
invalid conversion from `int' to `const CHAR*'
///////////////////////
char a='a';
DrawText (hdc, a, -1, &rc,DT_SINGLELINE );
invalid conversion from `char' to `const CHAR*'
///////////////////////
e 1 altro problema...
char a[10];
a = "ciao";
incompatible types in assignment of `const char[5]' to `char[10]'
ki m aiuta?

Rispondi quotando