Click here to Skip to main content
15,915,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: messages Pin
Paul M Watt19-May-02 21:53
mentorPaul M Watt19-May-02 21:53 
GeneralRe: messages Pin
S van Leent20-May-02 5:03
S van Leent20-May-02 5:03 
GeneralLSD and the Windows Desktop Pin
Shog919-May-02 9:53
sitebuilderShog919-May-02 9:53 
QuestionWhat is a DDE server? Pin
19-May-02 8:59
suss19-May-02 8:59 
AnswerRe: What is a DDE server? Pin
Michael P Butler19-May-02 9:39
Michael P Butler19-May-02 9:39 
AnswerRe: What is a DDE server? Pin
Paul M Watt19-May-02 9:41
mentorPaul M Watt19-May-02 9:41 
Generaltcp/ip and unicode... Pin
l a u r e n19-May-02 8:59
l a u r e n19-May-02 8:59 
GeneralRe: tcp/ip and unicode... Pin
Paul M Watt19-May-02 9:52
mentorPaul M Watt19-May-02 9:52 
I think that it all depends.

Who are your users , will they require a lot of UNICODE support, or are you just thinking ahead?

There are basically two ways to go:
1) Are you sending a lot of text across the socket frequently? Because if you are only sending a couple hundred characters then I would say it is not worth worrying about and I would deal with it in TCHARS. The drawback to this is that you will need to deploy two versions of your server and client, or at least they will need to differentiate between the two different types of packets that you send. WCHAR vs CHAR.

Another alternative to think about is to compress your text data before you send it. For most of the latin based language locales, all of the extra bytes in the UNICODE strings will be easily compressed. But you will still need to have two versions of the client, one ansi and one unicode.

2) If you are sending megabytes of characters, and you can spare the processing power, then you may want to consider reducing the data to CHAR data types, however you will want to make sure to use the multibyte conversions in order to prevent the loss of data for locales that actually depend on the UNICODE format.


Good Luck




Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: tcp/ip and unicode... Pin
l a u r e n19-May-02 10:29
l a u r e n19-May-02 10:29 
GeneralCStdioFile::Find() and CStdioFile::Insert() Pin
Emearg19-May-02 8:19
Emearg19-May-02 8:19 
GeneralRe: CStdioFile::Find() and CStdioFile::Insert() Pin
Joaquín M López Muñoz19-May-02 11:47
Joaquín M López Muñoz19-May-02 11:47 
GeneralRe: CString, not CStdioFile Pin
Emearg19-May-02 15:07
Emearg19-May-02 15:07 
GeneralRe: CString, not CStdioFile Pin
Ravi Bhavnani19-May-02 17:35
professionalRavi Bhavnani19-May-02 17:35 
GeneralBlackJack Pin
nywebhead19-May-02 5:44
nywebhead19-May-02 5:44 
GeneralRe: BlackJack Pin
Paul M Watt19-May-02 6:17
mentorPaul M Watt19-May-02 6:17 
GeneralRe: BlackJack Pin
Mazdak19-May-02 8:07
Mazdak19-May-02 8:07 
GeneralRe: BlackJack Pin
Paul M Watt19-May-02 8:37
mentorPaul M Watt19-May-02 8:37 
GeneralRe: BlackJack Pin
Mazdak19-May-02 9:09
Mazdak19-May-02 9:09 
GeneralRe: BlackJack Pin
nywebhead19-May-02 12:24
nywebhead19-May-02 12:24 
GeneralWindow Font Pin
Levon19-May-02 3:53
Levon19-May-02 3:53 
GeneralRe: Window Font Pin
19-May-02 5:05
suss19-May-02 5:05 
GeneralRe: Window Font Pin
19-May-02 5:11
suss19-May-02 5:11 
GeneralRe: Window Font Pin
19-May-02 5:11
suss19-May-02 5:11 
GeneralActiveX Pin
Tzoockee19-May-02 3:43
Tzoockee19-May-02 3:43 
GeneralRe: ActiveX Pin
Bill Wilson20-May-02 8:55
Bill Wilson20-May-02 8:55 

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.