Click here to Skip to main content
15,921,989 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: abs() function is wierd Pin
Cedric Moonen22-Sep-05 2:52
Cedric Moonen22-Sep-05 2:52 
GeneralRe: abs() function is wierd Pin
Adrian Metcalfe22-Sep-05 3:04
Adrian Metcalfe22-Sep-05 3:04 
AnswerRe: abs() function is wierd Pin
Adrian Metcalfe22-Sep-05 3:12
Adrian Metcalfe22-Sep-05 3:12 
AnswerRe: abs() function is wierd Pin
toxcct22-Sep-05 3:31
toxcct22-Sep-05 3:31 
QuestionDynamic Disk Pin
sanjaylk22-Sep-05 2:11
sanjaylk22-Sep-05 2:11 
AnswerRe: Dynamic Disk Pin
Nilesh K.22-Sep-05 2:29
Nilesh K.22-Sep-05 2:29 
GeneralRe: Dynamic Disk Pin
sanjaylk23-Sep-05 2:14
sanjaylk23-Sep-05 2:14 
QuestionDetermine if one PIDL is above or below another Pin
Skute22-Sep-05 2:04
Skute22-Sep-05 2:04 
AnswerRe: Determine if one PIDL is above or below another Pin
David Crow22-Sep-05 2:45
David Crow22-Sep-05 2:45 
GeneralRe: Determine if one PIDL is above or below another Pin
Skute22-Sep-05 3:21
Skute22-Sep-05 3:21 
QuestionMOUNT POINTS!! Pin
URagavSouth22-Sep-05 1:56
URagavSouth22-Sep-05 1:56 
AnswerRe: MOUNT POINTS!! Pin
Nilesh K.22-Sep-05 2:35
Nilesh K.22-Sep-05 2:35 
GeneralRe: MOUNT POINTS!! Pin
URagavSouth22-Sep-05 2:39
URagavSouth22-Sep-05 2:39 
GeneralRe: MOUNT POINTS!! Pin
Nilesh K.22-Sep-05 2:43
Nilesh K.22-Sep-05 2:43 
Questionconflict in windows focus - float menu involved Pin
Laffis22-Sep-05 1:39
Laffis22-Sep-05 1:39 
AnswerRe: conflict in windows focus - float menu involved Pin
Steen Krogsgaard22-Sep-05 1:59
Steen Krogsgaard22-Sep-05 1:59 
GeneralRe: conflict in windows focus - float menu involved Pin
Laffis22-Sep-05 2:23
Laffis22-Sep-05 2:23 
GeneralRe: conflict in windows focus - float menu involved Pin
Steen Krogsgaard22-Sep-05 2:39
Steen Krogsgaard22-Sep-05 2:39 
GeneralRe: conflict in windows focus - float menu involved Pin
Steen Krogsgaard22-Sep-05 2:43
Steen Krogsgaard22-Sep-05 2:43 
AnswerRe: conflict in windows focus - float menu involved Pin
Nilesh K.22-Sep-05 2:23
Nilesh K.22-Sep-05 2:23 
GeneralRe: conflict in windows focus - float menu involved Pin
Laffis22-Sep-05 2:47
Laffis22-Sep-05 2:47 
Questionhow to convert int to char* Pin
prabhakar2622-Sep-05 1:10
prabhakar2622-Sep-05 1:10 
AnswerRe: how to convert int to char* Pin
Laffis22-Sep-05 1:24
Laffis22-Sep-05 1:24 
AnswerRe: how to convert int to char* Pin
Steen Krogsgaard22-Sep-05 1:44
Steen Krogsgaard22-Sep-05 1:44 
AnswerRe: how to convert int to char* Pin
Omar.Pessoa22-Sep-05 2:10
Omar.Pessoa22-Sep-05 2:10 
You can use this sample:

#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 );
}


Output

String of integer 3445 (radix 10): 3445
String of integer 3445 (radix 16): 0xd75
String of integer 3445 (radix 2): 110101110101
String of long int -344115 (radix 16): 0xfffabfcd
String of unsigned long 1234567890 (radix 16): 0x499602d2




Omar

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.