Click here to Skip to main content
14,865,773 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12345-Jan-12 23:25
Membermeace12345-Jan-12 23:25 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
Richard MacCutchan5-Jan-12 23:54
mveRichard MacCutchan5-Jan-12 23:54 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12345-Jan-12 23:59
Membermeace12345-Jan-12 23:59 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
Richard MacCutchan6-Jan-12 0:16
mveRichard MacCutchan6-Jan-12 0:16 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12347-Jan-12 19:27
Membermeace12347-Jan-12 19:27 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
Richard MacCutchan8-Jan-12 0:02
mveRichard MacCutchan8-Jan-12 0:02 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
rana ray15-Feb-12 20:03
Memberrana ray15-Feb-12 20:03 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12347-Jan-12 17:57
Membermeace12347-Jan-12 17:57 
//How to do conversions for CLR C++ GUI
//This worked

double dblInput1 = 0.0;
double dblInput2 = 0.0;
double dblAnswer = 0.0;
String ^ strInput1;
String ^ strInput2;
strInput1 = this->Input1textBox->Text;
strInput2 = this->Input2textBox->Text;

Double::TryParse(strInput1, dblInput1);
Double::TryParse(strInput2, dblInput2);

dblAnswer = dblInput1 + dblInput2;

Answer1textBox->Text = System::Convert::ToString( dblAnswer );

But, How do i add an If then to handle the TryParse exception???


GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace123415-Jan-12 22:45
Membermeace123415-Jan-12 22:45 
QuestionWTL/ATL Pin
chithrakochu2-Jan-12 21:03
Memberchithrakochu2-Jan-12 21:03 
AnswerRe: WTL/ATL Pin
Pablo Aliskevicius16-Jan-12 4:17
MemberPablo Aliskevicius16-Jan-12 4:17 
Questionlisting Office contacts Pin
tasumisra26-Dec-11 0:30
Membertasumisra26-Dec-11 0:30 
AnswerRe: listing Office contacts Pin
Richard MacCutchan26-Dec-11 6:54
mveRichard MacCutchan26-Dec-11 6:54 
GeneralRe: listing Office contacts Pin
tasumisra26-Dec-11 21:28
Membertasumisra26-Dec-11 21:28 
GeneralRe: listing Office contacts Pin
Richard MacCutchan27-Dec-11 0:21
mveRichard MacCutchan27-Dec-11 0:21 
GeneralRe: listing Office contacts Pin
tasumisra27-Dec-11 0:45
Membertasumisra27-Dec-11 0:45 
GeneralRe: listing Office contacts Pin
Richard MacCutchan27-Dec-11 0:57
mveRichard MacCutchan27-Dec-11 0:57 
GeneralRe: listing Office contacts Pin
tasumisra27-Dec-11 3:18
Membertasumisra27-Dec-11 3:18 
GeneralRe: listing Office contacts Pin
Richard MacCutchan27-Dec-11 4:50
mveRichard MacCutchan27-Dec-11 4:50 
GeneralRe: listing Office contacts Pin
tasumisra27-Dec-11 5:44
Membertasumisra27-Dec-11 5:44 
Questionconverting CString to Char[100] Pin
KRISHNARAYALU19-Dec-11 22:30
MemberKRISHNARAYALU19-Dec-11 22:30 
AnswerRe: converting CString to Char[100] Pin
Albert Holguin20-Dec-11 4:56
professionalAlbert Holguin20-Dec-11 4:56 
GeneralRe: converting CString to Char[100] Pin
KRISHNARAYALU20-Dec-11 17:00
MemberKRISHNARAYALU20-Dec-11 17:00 
GeneralRe: converting CString to Char[100] Pin
Richard MacCutchan20-Dec-11 21:37
mveRichard MacCutchan20-Dec-11 21:37 
GeneralRe: converting CString to Char[100] Pin
Albert Holguin21-Dec-11 9:30
professionalAlbert Holguin21-Dec-11 9: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.