Topic: Long Int to char (HEX) string


Author: brad@stumpys.demon.co.uk (Brad Woolley)
Date: Tue, 29 Nov 1994 13:54:05 +0000
Raw View
Hi,

 I am writing some programs using MS Visual C++, in order to learn C++,
I have a problem can anyone help.

 I want to use the UNIX style date ( no of seconds aftr midnight etc.)
for a filename, I can get the value in a long int, but anyone tell me
how I can transfer the hex value into a character string ie.

      long int  =  786116744 to be a char string = 2EDB3088

 Thanks in advance.

   Brad


  |-------------------------------------------------|
  | Brad Woolley          brad@stumpys.demon.co.uk  |
  |       Sysop - Stumpy's BBS +44-1254-691952      |
  |-------------------------------------------------|