Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I show only Cancel button on Messagebox Pin
Hamid_RT2-Jul-08 21:42
Hamid_RT2-Jul-08 21:42 
GeneralRe: How can I show only Cancel button on Messagebox Pin
Saurabh.Garg2-Jul-08 21:47
Saurabh.Garg2-Jul-08 21:47 
AnswerRe: How can I show only Cancel button on Messagebox Pin
Saurabh.Garg2-Jul-08 18:34
Saurabh.Garg2-Jul-08 18:34 
GeneralRe: How can I show only Cancel button on Messagebox Pin
sheshidar2-Jul-08 18:48
sheshidar2-Jul-08 18:48 
GeneralRe: How can I show only Cancel button on Messagebox Pin
Saurabh.Garg2-Jul-08 18:59
Saurabh.Garg2-Jul-08 18:59 
QuestionHow to change resource FORMVIEW's language(In VC.net IDE) Pin
zhaokang19812-Jul-08 17:38
zhaokang19812-Jul-08 17:38 
AnswerRe: How to change resource FORMVIEW's language(In VC.net IDE) Pin
zhaokang19812-Jul-08 21:38
zhaokang19812-Jul-08 21:38 
Questionhelp format a number as a CString Pin
limesp2-Jul-08 17:37
limesp2-Jul-08 17:37 
I want to format 3 digit numbers as follows
if number is 6 then add "00" before number; SNumber = 006
if number is 15 then add "0" before number; SNumber = 015


CString givenTEXT;
GetDlgItemText(IDC_ID, givenTEXT);

int TEXTvalue = givenTEXT;
CString tempTEXT;
if (TEXTvalue < 10)
{
tempTEXT="00" + TEXTvalue;
}
else if(TEXTvalue < 100)
{
tempTEXT="0" + TEXTvalue;
}
else
{
tempTEXT = TEXTvalue; //error: "=" operator is ambiguous
}

if i change the last line to
tempTEXT = "" + TEXTvalue;
it compiles but tempTEXT is all screw up : "..\include\Atlexcept.h"
AnswerRe: help format a number as a CString Pin
Saurabh.Garg2-Jul-08 17:51
Saurabh.Garg2-Jul-08 17:51 
QuestionHelp with _tioa and other conversion routines Pin
Larry Mills Sr2-Jul-08 12:51
Larry Mills Sr2-Jul-08 12:51 
AnswerRe: Help with _tioa and other conversion routines Pin
Saurabh.Garg2-Jul-08 16:45
Saurabh.Garg2-Jul-08 16:45 
GeneralRe: Help with _tioa and other conversion routines Pin
Larry Mills Sr2-Jul-08 17:26
Larry Mills Sr2-Jul-08 17:26 
GeneralRe: Help with _tioa and other conversion routines Pin
Saurabh.Garg2-Jul-08 17:39
Saurabh.Garg2-Jul-08 17:39 
GeneralRe: Help with _tioa and other conversion routines Pin
Larry Mills Sr3-Jul-08 3:55
Larry Mills Sr3-Jul-08 3:55 
AnswerRe: Help with _tioa and other conversion routines Pin
beko2-Jul-08 19:55
beko2-Jul-08 19:55 
GeneralRe: Help with _tioa and other conversion routines Pin
Larry Mills Sr3-Jul-08 4:10
Larry Mills Sr3-Jul-08 4:10 
GeneralRe: Help with _tioa and other conversion routines Pin
Mark Salsbery3-Jul-08 7:04
Mark Salsbery3-Jul-08 7:04 
GeneralRe: Help with _tioa and other conversion routines Pin
Larry Mills Sr3-Jul-08 9:04
Larry Mills Sr3-Jul-08 9:04 
Question'strptime': identifier not found, even with argument-dependent lookup Pin
dinesh_shads2-Jul-08 12:02
dinesh_shads2-Jul-08 12:02 
AnswerRe: 'strptime': identifier not found, even with argument-dependent lookup Pin
dinesh_shads2-Jul-08 12:04
dinesh_shads2-Jul-08 12:04 
AnswerRe: 'strptime': identifier not found, even with argument-dependent lookup Pin
Saurabh.Garg2-Jul-08 16:50
Saurabh.Garg2-Jul-08 16:50 
QuestionAccelerator Key Pin
Anthony98872-Jul-08 9:54
Anthony98872-Jul-08 9:54 
AnswerRe: Accelerator Key Pin
Nelek3-Jul-08 22:08
protectorNelek3-Jul-08 22:08 
QuestionC++ program help counting frequency of char. entered. Pin
michael12012-Jul-08 9:10
michael12012-Jul-08 9:10 
AnswerRe: C++ program help counting frequency of char. entered. Pin
Maximilien2-Jul-08 9:33
Maximilien2-Jul-08 9:33 

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.