![]() |
|
#1
|
|||
|
|||
printing nos in vc++hi plz tell me how to print number in OnDraw.
I tried pDC->TextOut(10,10,"%d",d); but it is not working. and also plz tell me how to use that number for drawing a grid. |
|||
|
#2
|
|||
|
|||
|
Convert int to string and then display that string
Quote:
|
|
#3
|
|||
|
|||
printing numbersmine is a doubt in the basics in mfc.i want to print numbers by writing the code in 'OnDraw' function. i'am able to print characters or string using TextOut.
but i donno how to print numbers. |
|
#4
|
||||
|
||||
|
Quote:
Quote:
That is how to print numbers! Convert them to strings and use TextOut on that. We already covered converting int to string in MFC. Please follow the link and try it out. Best regards, Luci __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printing problem | Frandy | MS Visual C++ / MFC Forum | 1 | 16-Feb-2005 13:47 |
| printing integers in graphics mode | enggwaqas | C Programming Language | 4 | 04-Oct-2004 20:47 |
| I cant believe this doesnt work: - basic printing of integers to screen | davo | C Programming Language | 2 | 24-Jul-2004 21:50 |
| Printing | nniehoff | Computer Software Forum - Windows | 0 | 06-Feb-2002 07:07 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The