Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CreateFile after CloseHandle Pin
User 742933814-Nov-11 23:58
professionalUser 742933814-Nov-11 23:58 
GeneralRe: CreateFile after CloseHandle Pin
aangerma15-Nov-11 0:09
aangerma15-Nov-11 0:09 
AnswerRe: CreateFile after CloseHandle Pin
User 742933815-Nov-11 0:20
professionalUser 742933815-Nov-11 0:20 
GeneralRe: CreateFile after CloseHandle Pin
aangerma15-Nov-11 0:35
aangerma15-Nov-11 0:35 
GeneralRe: CreateFile after CloseHandle Pin
Erudite_Eric15-Nov-11 1:37
Erudite_Eric15-Nov-11 1:37 
GeneralRe: CreateFile after CloseHandle Pin
Vaclav_15-Nov-11 10:45
Vaclav_15-Nov-11 10:45 
GeneralRe: CreateFile after CloseHandle Pin
Erudite_Eric15-Nov-11 21:19
Erudite_Eric15-Nov-11 21:19 
QuestionHide folder in window explorer Pin
MKC00214-Nov-11 22:40
MKC00214-Nov-11 22:40 
AnswerRe: Hide folder in window explorer Pin
Richard MacCutchan14-Nov-11 23:07
mveRichard MacCutchan14-Nov-11 23:07 
GeneralRe: Hide folder in window explorer Pin
MKC00215-Nov-11 21:33
MKC00215-Nov-11 21:33 
GeneralRe: Hide folder in window explorer Pin
Richard MacCutchan15-Nov-11 21:46
mveRichard MacCutchan15-Nov-11 21:46 
Questionconvert double to WCHAR Pin
jkirkerx14-Nov-11 16:32
professionaljkirkerx14-Nov-11 16:32 
AnswerRe: convert double to WCHAR Pin
David Crow14-Nov-11 16:54
David Crow14-Nov-11 16:54 
AnswerRe: convert double to WCHAR PinPopular
Peter_in_278014-Nov-11 17:06
professionalPeter_in_278014-Nov-11 17:06 
GeneralRe: convert double to WCHAR Pin
jkirkerx15-Nov-11 6:15
professionaljkirkerx15-Nov-11 6:15 
QuestionRe: convert double to WCHAR Pin
David Crow15-Nov-11 7:17
David Crow15-Nov-11 7:17 
AnswerRe: convert double to WCHAR Pin
jkirkerx15-Nov-11 8:43
professionaljkirkerx15-Nov-11 8:43 
GeneralRe: convert double to WCHAR Pin
David Crow15-Nov-11 9:07
David Crow15-Nov-11 9:07 
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 
Thanks for the heads up on the swprintf_s. I appreciate the attention to detail and efficiency you gave me today. tough learn today, but it works well.

Changed it to this now.

C#
case BINDSTATUS_DOWNLOADINGDATA:
                // Calculate the MegaBytes Downloaded
                dBytes = ((float)ulProgress / (1024*1024));
                dTotal = ((float)ulProgressMax / (1024*1024));
                dPercent = dBytes/dTotal*100;

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

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 

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.