MFC - TextOut

How make in code, which has a dynamic variable...
for (....)
pDC->TextOut(posX, posY, i);

Comments

  • : How make in code, which has a dynamic variable...
    : for (....)
    : pDC->TextOut(posX, posY, i);
    :
    [color=Blue]I can't understand a thing you are asking...[/color]
  • : How make in code, which has a dynamic variable...
    : for (....)
    : pDC->TextOut(posX, posY, i);
    :

    You need to format a text string (character array) with the contents of the "dynamic variable" and then display that text. To do this you might use something analogous to [italic]sprintf[/italic]... or possibly through the use of a [italic]stringstream[/italic] container/object.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories