Click here to Skip to main content
12,247,928 members (52,419 online)

ATL / WTL / STL

 
QuestionFireEvent method not returning cancelchange status correctly. Pin
keloth19879-Jan-12 23:35
memberkeloth19879-Jan-12 23:35 
QuestionVS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12345-Jan-12 23:14
membermeace12345-Jan-12 23:14 
AnswerRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
Richard MacCutchan6-Jan-12 0:13
mvpRichard MacCutchan6-Jan-12 0:13 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12346-Jan-12 0:25
membermeace12346-Jan-12 0:25 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
Richard MacCutchan6-Jan-12 0:54
mvpRichard MacCutchan6-Jan-12 0:54 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12346-Jan-12 0:59
membermeace12346-Jan-12 0:59 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
Richard MacCutchan6-Jan-12 1:16
mvpRichard MacCutchan6-Jan-12 1:16 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12347-Jan-12 20:27
membermeace12347-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? Pin
Richard MacCutchan8-Jan-12 1:02
mvpRichard MacCutchan8-Jan-12 1:02 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
rana ray15-Feb-12 21:03
memberrana ray15-Feb-12 21:03 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace12347-Jan-12 18:57
membermeace12347-Jan-12 18:57 
GeneralRe: VS2010 CLR double to String, String to double MSVC/C++ methods? Pin
meace123415-Jan-12 23:45
membermeace123415-Jan-12 23:45 
QuestionWTL/ATL Pin
chithrakochu2-Jan-12 22:03
memberchithrakochu2-Jan-12 22:03 
AnswerRe: WTL/ATL Pin
Pablo Aliskevicius16-Jan-12 5:17
memberPablo Aliskevicius16-Jan-12 5:17 
Questionlisting Office contacts Pin
tasumisra26-Dec-11 1:30
membertasumisra26-Dec-11 1:30 
AnswerRe: listing Office contacts Pin
Richard MacCutchan26-Dec-11 7:54
mvpRichard MacCutchan26-Dec-11 7:54 
GeneralRe: listing Office contacts Pin
tasumisra26-Dec-11 22:28
membertasumisra26-Dec-11 22:28 
GeneralRe: listing Office contacts Pin
Richard MacCutchan27-Dec-11 1:21
mvpRichard MacCutchan27-Dec-11 1:21 
GeneralRe: listing Office contacts Pin
tasumisra27-Dec-11 1:45
membertasumisra27-Dec-11 1:45 
GeneralRe: listing Office contacts Pin
Richard MacCutchan27-Dec-11 1:57
mvpRichard MacCutchan27-Dec-11 1:57 
GeneralRe: listing Office contacts Pin
tasumisra27-Dec-11 4:18
membertasumisra27-Dec-11 4:18 
GeneralRe: listing Office contacts Pin
Richard MacCutchan27-Dec-11 5:50
mvpRichard MacCutchan27-Dec-11 5:50 
GeneralRe: listing Office contacts Pin
tasumisra27-Dec-11 6:44
membertasumisra27-Dec-11 6:44 
Questionconverting CString to Char[100] Pin
KRISHNARAYALU19-Dec-11 23:30
memberKRISHNARAYALU19-Dec-11 23:30 
AnswerRe: converting CString to Char[100] Pin
Albert Holguin20-Dec-11 5:56
memberAlbert Holguin20-Dec-11 5:56 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 2 Mar 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid