Click here to Skip to main content
15,905,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
AnswerRe: how to convert int to char* Pin
bugDanny22-Sep-05 2:38
bugDanny22-Sep-05 2:38 
QuestionCD writing in VC Pin
kk.tvm22-Sep-05 0:40
kk.tvm22-Sep-05 0:40 
AnswerRe: CD writing in VC Pin
kakan22-Sep-05 1:54
professionalkakan22-Sep-05 1:54 
GeneralRe: CD writing in VC Pin
kk.tvm22-Sep-05 1:59
kk.tvm22-Sep-05 1:59 
AnswerRe: CD writing in VC Pin
Nilesh K.22-Sep-05 2:11
Nilesh K.22-Sep-05 2:11 
QuestionReading Excel files in VC Pin
kk.tvm22-Sep-05 0:31
kk.tvm22-Sep-05 0:31 
AnswerRe: Reading Excel files in VC Pin
*Dreamz22-Sep-05 0:34
*Dreamz22-Sep-05 0:34 
QuestionRe: Reading Excel files in VC Pin
kk.tvm22-Sep-05 0:37
kk.tvm22-Sep-05 0:37 
GeneralRe: Reading Excel files in VC Pin
*Dreamz22-Sep-05 0:42
*Dreamz22-Sep-05 0:42 
AnswerRe: Reading Excel files in VC Pin
Cedric Moonen22-Sep-05 0:45
Cedric Moonen22-Sep-05 0:45 
AnswerRe: Reading Excel files in VC Pin
Roger Allen22-Sep-05 2:17
Roger Allen22-Sep-05 2:17 
AnswerRe: Reading Excel files in VC Pin
Barm22-Sep-05 18:42
Barm22-Sep-05 18:42 
QuestionVisualStudio: Copy/Paste a rectangular window Pin
Chintoo72322-Sep-05 0:18
Chintoo72322-Sep-05 0:18 
AnswerRe: VisualStudio: Copy/Paste a rectangular window Pin
*Dreamz22-Sep-05 0:28
*Dreamz22-Sep-05 0:28 
GeneralRe: VisualStudio: Copy/Paste a rectangular window Pin
toxcct22-Sep-05 0:34
toxcct22-Sep-05 0:34 
GeneralRe: VisualStudio: Copy/Paste a rectangular window Pin
*Dreamz22-Sep-05 0:38
*Dreamz22-Sep-05 0:38 
GeneralRe: VisualStudio: Copy/Paste a rectangular window Pin
toxcct22-Sep-05 1:30
toxcct22-Sep-05 1:30 

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.