vicky wrote, On 18/09/07 06:43:
hi all,
i am devloping a "Sudoku solver & genertor" project in C.
while displaying the numeric(integer) on the screen i use
function.
outtextxy(r,c,value);
outtextxy is not standard C and so is off topic here. However, you
provide enough information about it to allow the question to be answered.
where r & c are cordinates on the screen(X,Y)-integer and
value is numeric(integer) that i want to display on required box.
but outtextxy(r,c,value) doesn't support integer as value it
should be const char far*. what should i do to convert the integer
into const char far*.
and if i typecast integer to char then still it shows an error
i.e. Cann't convert int into const char far*.
far is not part of standard C either and so off topic here.
what should i do to display the integer using outtextxy() function or
something else
You need to convert your integer value to a string. In standard C the
normal way to do this is to use sprintf with appropriate values. How you
then get a far pointer to your string instead of a normal pointer is
another matter and for that you will have to ask somewhere that your
specific implementation is topical. Or move to a vaguely modern compiler
that does not use far and probably uses a different method to put
strings at specific locations on the screen.
--
Flash Gordon