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

C / C++ / MFC

 
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 
jkirkerx wrote:
The wsprintf just gave me a f

In your original post, you used wprintf() not wsprintf(). They output to two different places.

Have you considered:

TCHAR szTemp0[20];
TCHAR szTemp1[20];
_stprintf(szTemp0, _T("%.2f"), dBytes);
_stprintf(szTemp1, _T("%.2f"), dTotal);
This will handle both Unicode and MBCS.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous



modified 15-Nov-11 15:07pm.

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 
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 
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 

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.