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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.