Click here to Skip to main content
15,891,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to check an empty VARIANT in VC++ Pin
_AnsHUMAN_ 29-May-09 0:43
_AnsHUMAN_ 29-May-09 0:43 
QuestionPrinter settings Pin
AnayKulkarni28-May-09 23:15
AnayKulkarni28-May-09 23:15 
AnswerRe: Printer settings Pin
«_Superman_»28-May-09 23:23
professional«_Superman_»28-May-09 23:23 
GeneralRe: Printer settings Pin
AnayKulkarni28-May-09 23:55
AnayKulkarni28-May-09 23:55 
QuestionRe: Printer settings Pin
«_Superman_»29-May-09 0:41
professional«_Superman_»29-May-09 0:41 
QuestionGetLocalDiskNames Pin
p_196028-May-09 20:48
p_196028-May-09 20:48 
AnswerRe: GetLocalDiskNames Pin
Hamid_RT28-May-09 21:15
Hamid_RT28-May-09 21:15 
QuestionSend data bits through USB Pin
mythlace28-May-09 20:24
mythlace28-May-09 20:24 
AnswerRe: Send data bits through USB Pin
Cedric Moonen28-May-09 20:36
Cedric Moonen28-May-09 20:36 
GeneralRe: Send data bits through USB Pin
«_Superman_»28-May-09 20:41
professional«_Superman_»28-May-09 20:41 
GeneralRe: Send data bits through USB Pin
mythlace28-May-09 20:43
mythlace28-May-09 20:43 
GeneralRe: Send data bits through USB Pin
Cedric Moonen28-May-09 20:51
Cedric Moonen28-May-09 20:51 
GeneralRe: Send data bits through USB Pin
mythlace28-May-09 21:01
mythlace28-May-09 21:01 
GeneralRe: Send data bits through USB Pin
Cedric Moonen28-May-09 21:10
Cedric Moonen28-May-09 21:10 
AnswerRe: Send data bits through USB Pin
bolivar12329-May-09 9:00
bolivar12329-May-09 9:00 
QuestionHow to measure wstring memory size? Pin
cozyu28-May-09 20:16
cozyu28-May-09 20:16 
I use std::wstring for unicode.
To write a file with wstring, I need the memory size of wstring.
But I couldn't find the method about memory size.
wstring::size() and wstring::length() show only the length of characters.

for example,
std::wstring strText = L"ABC";

In the example, length of strText is '3'
But memory size of strText is '6' (in windows)

Is there any method to get memory size of std::wstring?

Thanks your help

David.
AnswerRe: How to measure wstring memory size? Pin
Cedric Moonen28-May-09 20:18
Cedric Moonen28-May-09 20:18 
AnswerRe: How to measure wstring memory size? Pin
«_Superman_»28-May-09 20:43
professional«_Superman_»28-May-09 20:43 
GeneralRe: How to measure wstring memory size? Pin
Cedric Moonen28-May-09 20:58
Cedric Moonen28-May-09 20:58 
GeneralRe: How to measure wstring memory size? Pin
«_Superman_»28-May-09 21:07
professional«_Superman_»28-May-09 21:07 
GeneralRe: How to measure wstring memory size? Pin
Cedric Moonen28-May-09 21:11
Cedric Moonen28-May-09 21:11 
GeneralRe: How to measure wstring memory size? Pin
«_Superman_»28-May-09 21:13
professional«_Superman_»28-May-09 21:13 
GeneralRe: How to measure wstring memory size? Pin
Cedric Moonen28-May-09 21:20
Cedric Moonen28-May-09 21:20 
GeneralRe: How to measure wstring memory size? Pin
norish28-May-09 20:48
norish28-May-09 20:48 
AnswerRe: How to measure wstring memory size? Pin
Stuart Dootson28-May-09 22:22
professionalStuart Dootson28-May-09 22:22 

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.