MFC - TextOut - Programmers Heaven

Howdy, Stranger!

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

Categories

MFC - TextOut

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

Comments

  • AsmGuru62AsmGuru62 Posts: 6,519Member
    : 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]
  • HK_MP5KPDWHK_MP5KPDW Posts: 770Member ✭✭✭
    : 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.