Click here to Skip to main content
15,929,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help with some date/time input pls Pin
neodeaths29-Jun-05 14:13
neodeaths29-Jun-05 14:13 
GeneralRe: help with some date/time input pls Pin
David Crow29-Jun-05 16:58
David Crow29-Jun-05 16:58 
GeneralRe: help with some date/time input pls Pin
neodeaths2-Jul-05 9:40
neodeaths2-Jul-05 9:40 
GeneralRe: help with some date/time input pls Pin
David Crow2-Jul-05 12:07
David Crow2-Jul-05 12:07 
GeneralRe: help with some date/time input pls Pin
neodeaths2-Jul-05 17:50
neodeaths2-Jul-05 17:50 
GeneralRe: help with some date/time input pls Pin
David Crow4-Jul-05 11:42
David Crow4-Jul-05 11:42 
GeneralNumber of bytes in a mbcs string Pin
Chintoo72329-Jun-05 3:28
Chintoo72329-Jun-05 3:28 
GeneralRe: Number of bytes in a mbcs string Pin
RChin29-Jun-05 4:40
RChin29-Jun-05 4:40 
Flace wrote:
With _MBCS defined, size of TCHAR is 1 byte, so you cant even multiply _tcslen with this

I'm confused by this statement. But the number of occupied bytes in your string will be :
<br />
int nBytes = (_tcslen(pszString) * sizeof(TCHAR));<br />


The sizeof() will return the number of bytes occupied per character. This will obviously vary depending if you are working in single byte or double byte character mode.





I Dream of Absolute Zero

GeneralRe: Number of bytes in a mbcs string Pin
Jose Lamas Rios29-Jun-05 4:41
Jose Lamas Rios29-Jun-05 4:41 
GeneralRe: Number of bytes in a mbcs string Pin
Chintoo72329-Jun-05 4:54
Chintoo72329-Jun-05 4:54 
GeneralRe: Number of bytes in a mbcs string Pin
Jose Lamas Rios29-Jun-05 5:04
Jose Lamas Rios29-Jun-05 5:04 
GeneralRe: Number of bytes in a mbcs string Pin
Andrew Kirillov29-Jun-05 4:58
Andrew Kirillov29-Jun-05 4:58 
GeneralRe: Number of bytes in a mbcs string Pin
Jose Lamas Rios29-Jun-05 5:07
Jose Lamas Rios29-Jun-05 5:07 
Questionany limitations to VTable ??? Pin
Abhi Lahare29-Jun-05 3:24
Abhi Lahare29-Jun-05 3:24 
AnswerRe: any limitations to VTable ??? Pin
Chris Losinger29-Jun-05 3:33
professionalChris Losinger29-Jun-05 3:33 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 3:41
Chintoo72329-Jun-05 3:41 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 3:42
Chintoo72329-Jun-05 3:42 
GeneralRe: any limitations to VTable ??? Pin
Chris Losinger29-Jun-05 3:48
professionalChris Losinger29-Jun-05 3:48 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 3:55
Chintoo72329-Jun-05 3:55 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 3:56
Chintoo72329-Jun-05 3:56 
GeneralRe: any limitations to VTable ??? Pin
Chris Losinger29-Jun-05 4:03
professionalChris Losinger29-Jun-05 4:03 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 4:18
Chintoo72329-Jun-05 4:18 
GeneralRe: any limitations to VTable ??? Pin
Chris Losinger29-Jun-05 4:23
professionalChris Losinger29-Jun-05 4:23 
GeneralRe: any limitations to VTable ??? Pin
Chintoo72329-Jun-05 4:34
Chintoo72329-Jun-05 4:34 
Generalcan't compile my codes...pls help Pin
Member 208234129-Jun-05 2:11
Member 208234129-Jun-05 2:11 

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.