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

C / C++ / MFC

 
GeneralRe: convert double to WCHAR Pin
jkirkerx15-Nov-11 9:53
professionaljkirkerx15-Nov-11 9:53 
GeneralRe: convert double to WCHAR Pin
David Crow15-Nov-11 10:08
David Crow15-Nov-11 10:08 
GeneralRe: convert double to WCHAR Pin
jkirkerx15-Nov-11 10:17
professionaljkirkerx15-Nov-11 10:17 
GeneralRe: convert double to WCHAR Pin
jkirkerx15-Nov-11 15:16
professionaljkirkerx15-Nov-11 15:16 
SuggestionRe: convert double to WCHAR Pin
David Crow16-Nov-11 2:05
David Crow16-Nov-11 2:05 
GeneralRe: convert double to WCHAR Pin
jkirkerx16-Nov-11 6:20
professionaljkirkerx16-Nov-11 6:20 
GeneralRe: convert double to WCHAR Pin
jkirkerx15-Nov-11 6:34
professionaljkirkerx15-Nov-11 6:34 
AnswerRe: convert double to WCHAR Pin
jkirkerx15-Nov-11 7:18
professionaljkirkerx15-Nov-11 7:18 
Alright I'm still learning here so don't laugh, but I was able to consolidate the whole thing into one swprintf_s, to produce my status message. That's pretty cool. I wonder if I should of just used TCHAR and wsprintf_s and went the Microsoft way?

FYI:
I started with vb, so I was use to building strings together with &, or + in JavaScript.

C#
dBytes = ((float)ulProgress / (1024*1024));
dTotal = ((float)ulProgressMax / (1024*1024));

if ((dBytes > 0.10) && (dTotal > 0.10)) {
            swprintf_s(szStatusMessage, L"Downloading %.2f MB of %.2f MB", dBytes, dTotal);
            iMsgLen = wcslen(szStatusMessage);
            szStatusMessage[iMsgLen] = '\0';
}

GeneralRe: convert double to WCHAR Pin
David Crow15-Nov-11 9:09
David Crow15-Nov-11 9:09 
GeneralRe: convert double to WCHAR Pin
Peter_in_278015-Nov-11 11:19
professionalPeter_in_278015-Nov-11 11:19 
QuestionSetOccDialogInfo linker error VC 6.0 MFC SOLVED????? Pin
Vaclav_14-Nov-11 12:18
Vaclav_14-Nov-11 12:18 
AnswerRe: SetOccDialogInfo linker error VC 6.0 MFC Pin
Richard Andrew x6414-Nov-11 13:49
professionalRichard Andrew x6414-Nov-11 13:49 
GeneralRe: SetOccDialogInfo linker error VC 6.0 MFC Pin
Vaclav_14-Nov-11 14:30
Vaclav_14-Nov-11 14:30 
QuestionDelete tab Pin
antonio34314-Nov-11 12:08
antonio34314-Nov-11 12:08 
AnswerRe: Delete tab Pin
enhzflep14-Nov-11 13:44
enhzflep14-Nov-11 13:44 
QuestionRe: Delete tab Pin
David Crow14-Nov-11 16:53
David Crow14-Nov-11 16:53 
AnswerRe: Delete tab Pin
antonio34314-Nov-11 23:05
antonio34314-Nov-11 23:05 
QuestionRe: Delete tab Pin
David Crow15-Nov-11 2:59
David Crow15-Nov-11 2:59 
QuestionC++ Function Alias Pin
Joschwenk66614-Nov-11 2:41
Joschwenk66614-Nov-11 2:41 
AnswerRe: C++ Function Alias Pin
Chris Meech14-Nov-11 3:13
Chris Meech14-Nov-11 3:13 
GeneralRe: C++ Function Alias Pin
Albert Holguin14-Nov-11 3:55
professionalAlbert Holguin14-Nov-11 3:55 
GeneralRe: C++ Function Alias Pin
Chris Meech14-Nov-11 4:13
Chris Meech14-Nov-11 4:13 
GeneralRe: C++ Function Alias Pin
Albert Holguin14-Nov-11 4:33
professionalAlbert Holguin14-Nov-11 4:33 
GeneralRe: C++ Function Alias Pin
Richard MacCutchan14-Nov-11 6:36
mveRichard MacCutchan14-Nov-11 6:36 
GeneralRe: C++ Function Alias Pin
Albert Holguin14-Nov-11 7:25
professionalAlbert Holguin14-Nov-11 7:25 

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.