Easy... Very easy.

Hello experts...

Well... I have allready some C knowledge, but I almost would say that I learned C and C++ just working for Windows.
Well... I can process messages, create windows, draw bitmaps, but I don't know how to get a text string from a number.

For instances... In VB I would say:

A$ = STR$(A)... But I don't know how to do it in C++.

Any type of number... I mean... HWNDs, ints, HINSTANCEs, etc

Can anybody tell me for 15 points?. :-)
If possible... not using a huge library

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

  >>don't know how to get a text string from a number
 u mean 1234abc

  text = abc

Hi check this from the std example
#include <stdlib.h>
#include <stdio.h>

void main( void )
   char buffer[20];
   int  i = 3445;
   long l = -344115L;
   unsigned long ul = 1234567890UL;

   _itoa( i, buffer, 10 );
   printf( "String of integer %d (radix 10): %s\n", i, buffer );
   _itoa( i, buffer, 16 );
   printf( "String of integer %d (radix 16): 0x%s\n", i, buffer );
   _itoa( i, buffer, 2  );
   printf( "String of integer %d (radix 2): %s\n", i, buffer );

   _ltoa( l, buffer, 16 );
   printf( "String of long int %ld (radix 16): 0x%s\n", l,
                                                    buffer );

   _ultoa( ul, buffer, 16 );
   printf( "String of unsigned long %lu (radix 16): 0x%s\n", ul,
                                                    buffer );
Hope this helps

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MarscAuthor Commented:
Thanks... I will test it...
(I didn't yet...)
But I guess that those function will work

I'm not using printf... (I'm using Text Out, since I'm programming for windows).

But I guess that those function will work

Have a nice milenium.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.