Click here to Skip to main content
       

ATL / WTL / STL

 
AnswerRe: How to get the address of resource data in an execute file? PinmvpRichard MacCutchan16-Jan-12 0:00 
GeneralRe: How to get the address of resource data in an execute file? Pinmemberwhiteclouds16-Jan-12 21:59 
QuestionBoost iterators in TR1/C++11 PinmemberCool Cow Orjan13-Jan-12 6:37 
Questioncompression/decompression using GZip.exe(3rd party) PinmemberKASR111-Jan-12 1:13 
AnswerRe: compression/decompression using GZip.exe(3rd party) PinmvpRichard MacCutchan11-Jan-12 3:39 
AnswerRe: compression/decompression using GZip.exe(3rd party) PinmemberAlbert Holguin17-Jan-12 10:30 
QuestionFireEvent method not returning cancelchange status correctly. Pinmemberkeloth19879-Jan-12 23:35 
QuestionVS2010 CLR double to String, String to double MSVC/C++ methods? Pinmembermeace12345-Jan-12 23:14 
AnswerRe: VS2010 CLR double to String, String to double MSVC/C++ methods? PinmvpRichard MacCutchan6-Jan-12 0:13 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pinmembermeace12346-Jan-12 0:25 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? PinmvpRichard MacCutchan6-Jan-12 0:54 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pinmembermeace12346-Jan-12 0:59 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? PinmvpRichard MacCutchan6-Jan-12 1:16 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pinmembermeace12347-Jan-12 20:27 
Here is the conversion part
CLR isnt too bad... better than MFC yes?
 
//How to do conversions for CLR C++ GUI
 
double dblInput1 = 0.0;
double dblInput2 = 0.0;
double dblAnswer = 0.0;
String ^ strInput1;
String ^ strInput2;
strInput1 = this->Input1textBox->Text;
strInput2 = this->Input2textBox->Text;
 
if (Double::TryParse(strInput1, dblInput1) & Double::TryParse(strInput2, dblInput2))
 
{
 
// do something
dblAnswer = dblInput1 + dblInput2;
 
Answer1textBox->Text = System::Convert::ToString( dblAnswer );
}
 
else
 
{
// the text was not a number, show user an error if appropiate
MessageBox::Show("Error");
 
}


GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? PinmvpRichard MacCutchan8-Jan-12 1:02 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pinmemberrana ray15-Feb-12 21:03 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pinmembermeace12347-Jan-12 18:57 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pinmembermeace123415-Jan-12 23:45 
QuestionWTL/ATL Pinmemberchithrakochu2-Jan-12 22:03 
AnswerRe: WTL/ATL PinmemberPablo Aliskevicius16-Jan-12 5:17 
Questionlisting Office contacts Pinmembertasumisra26-Dec-11 1:30 
AnswerRe: listing Office contacts PinmvpRichard MacCutchan26-Dec-11 7:54 
GeneralRe: listing Office contacts Pinmembertasumisra26-Dec-11 22:28 
GeneralRe: listing Office contacts PinmvpRichard MacCutchan27-Dec-11 1:21 
GeneralRe: listing Office contacts Pinmembertasumisra27-Dec-11 1:45 
GeneralRe: listing Office contacts PinmvpRichard MacCutchan27-Dec-11 1:57 
GeneralRe: listing Office contacts Pinmembertasumisra27-Dec-11 4:18 
GeneralRe: listing Office contacts PinmvpRichard MacCutchan27-Dec-11 5:50 
GeneralRe: listing Office contacts Pinmembertasumisra27-Dec-11 6:44 
Questionconverting CString to Char[100] PinmemberKRISHNARAYALU19-Dec-11 23:30 
AnswerRe: converting CString to Char[100] PinmemberAlbert Holguin20-Dec-11 5:56 
GeneralRe: converting CString to Char[100] PinmemberKRISHNARAYALU20-Dec-11 18:00 
GeneralRe: converting CString to Char[100] PinmvpRichard MacCutchan20-Dec-11 22:37 
GeneralRe: converting CString to Char[100] PinmemberAlbert Holguin21-Dec-11 10:30 
GeneralRe: converting CString to Char[100] PinmvpRichard MacCutchan21-Dec-11 10:46 
AnswerRe: converting CString to Char[100] Pinmemberstonexin20-Dec-11 19:18 
GeneralRe: converting CString to Char[100] Pinmemberstonexin20-Dec-11 19:18 
GeneralRe: converting CString to Char[100] Pinmemberjumancollion27-Dec-11 6:08 
AnswerRe: converting CString to Char[100] PinmemberMember 81530089-Jan-12 21:25 
QuestionConvert MFC dll To UNICODE Pinmemberkhaliloenit8-Dec-11 1:04 
AnswerRe: Convert MFC dll To UNICODE PinmvpRichard MacCutchan8-Dec-11 1:28 
AnswerRe: Convert MFC dll To UNICODE PinmvpRichard MacCutchan8-Dec-11 2:09 
GeneralRe: Convert MFC dll To UNICODE Pinmemberkhaliloenit8-Dec-11 2:52 
GeneralRe: Convert MFC dll To UNICODE PinmvpRichard MacCutchan8-Dec-11 3:13 
GeneralRe: Convert MFC dll To UNICODE Pinmemberkhaliloenit8-Dec-11 22:49 
GeneralRe: Convert MFC dll To UNICODE PinmvpRichard MacCutchan8-Dec-11 23:09 
GeneralRe: Convert MFC dll To UNICODE Pinmemberkhaliloenit26-Dec-11 2:04 
GeneralRe: Convert MFC dll To UNICODE PinmvpRichard MacCutchan26-Dec-11 7:51 
GeneralRe: Convert MFC dll To UNICODE Pinmemberkhaliloenit26-Dec-11 23:19 
GeneralRe: Convert MFC dll To UNICODE PinmvpRichard MacCutchan27-Dec-11 1:14 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 22 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid