Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGet texts from the dialog and show them on the View Pin
bonmeepon8-Aug-04 18:30
bonmeepon8-Aug-04 18:30 
GeneralRe: Get texts from the dialog and show them on the View Pin
Vadim Tabakman8-Aug-04 18:40
Vadim Tabakman8-Aug-04 18:40 
Questionfopen errors? Pin
Tyrus1828-Aug-04 17:55
Tyrus1828-Aug-04 17:55 
AnswerRe: fopen errors? Pin
Vadim Tabakman8-Aug-04 18:31
Vadim Tabakman8-Aug-04 18:31 
AnswerRe: fopen errors? Pin
David Crow9-Aug-04 3:12
David Crow9-Aug-04 3:12 
GeneralSet Fields in ADO?(VC++) Pin
Zero_One_ADO8-Aug-04 17:37
Zero_One_ADO8-Aug-04 17:37 
GeneralRe: Set Fields in ADO?(VC++) Pin
Milton Karimbekallil8-Aug-04 18:51
Milton Karimbekallil8-Aug-04 18:51 
GeneralDBCS Hell! Pin
John R. Shaw8-Aug-04 17:14
John R. Shaw8-Aug-04 17:14 
It seemed simple at first: support DBCS.

OK!
All the DBCS lower 128 characters are ANSI/ASCII; exception of '\' which is the Yen Sign in Japanese Shift-JIS.

BUT!
All the DBCS sets also provide a second set of characters representing: a-z, A-Z and 0-9. In addition some DBCS sets provide a second set of characters representing some other characters that must be recognised.

NOW!
First I made an invalid assumption that the _tcsXXX and ect... could be used to solve this problem, and second that any character represented in ANSI/ASCII set would be in the SBCS character set.

Quesions?
1) Should I provide a mapping a function that reconizes the same chacreter in ANSI and DBCS, and use that for all testing ( a.k.a. if( IsChar(*pChar, _T('-')) ) ).

2) Should I force useres to only use non-language specific characters, if they are aready defined in the ANSI/ASCII set.

Examples:
1) (LOCALE: Japanese Shift-JIS)
"0" and "\x82\x4F" both represent character '0', but _ttoi() does not recognise both of these as character '0'.

2) (LOCALE: Korean)
"+" and "\xA3\xAB" both represent character '+', but both _tcsncmp( pStr, _T("+") ) and *pStr == _T('+') does not recogize both of these as the character '+'.

Conclusion!
This is a pain in the 'BLANK'!

Ultimate Quesions!
1) Is this realy worth the effort?
OR
2) Is this just a ridiculously large amount of overhead to add proper support for DBCS character sets?

Note:
Requirements: support for ASCII, DBCS, UNICODE.


INTP
GeneralDialog initlization Pin
Tyrus1828-Aug-04 16:49
Tyrus1828-Aug-04 16:49 
GeneralRe: Dialog initlization Pin
Ryan Binns8-Aug-04 18:11
Ryan Binns8-Aug-04 18:11 
GeneralRe: Dialog initlization Pin
Vadim Tabakman8-Aug-04 18:12
Vadim Tabakman8-Aug-04 18:12 
QuestionHow to execute a SQL pass-through from Regular Dll Pin
TuanTriTue8-Aug-04 16:47
TuanTriTue8-Aug-04 16:47 
Generalsingle server and multiple clients, using multithreading (winsock) Pin
deep_george Z8-Aug-04 16:17
sussdeep_george Z8-Aug-04 16:17 
GeneralRe: single server and multiple clients, using multithreading (winsock) Pin
Ryan Binns8-Aug-04 18:16
Ryan Binns8-Aug-04 18:16 
GeneralFind out which header files are included.. Pin
Vadim Tabakman8-Aug-04 15:49
Vadim Tabakman8-Aug-04 15:49 
GeneralRe: Find out which header files are included.. Pin
Blake Miller9-Aug-04 5:26
Blake Miller9-Aug-04 5:26 
GeneralRe: Find out which header files are included.. Pin
Vadim Tabakman9-Aug-04 14:43
Vadim Tabakman9-Aug-04 14:43 
GeneralMSChartCtrl Pin
Tyrus1828-Aug-04 14:41
Tyrus1828-Aug-04 14:41 
GeneralRe: MSChartCtrl Pin
Ravi Bhavnani8-Aug-04 15:27
professionalRavi Bhavnani8-Aug-04 15:27 
Generalneed help with a copy button Pin
locoone8-Aug-04 14:32
locoone8-Aug-04 14:32 
GeneralRe: need help with a copy button Pin
Christian Graus8-Aug-04 15:32
protectorChristian Graus8-Aug-04 15:32 
GeneralHelp needed...Image format conversion in VC++ Pin
pavanbabut8-Aug-04 7:33
pavanbabut8-Aug-04 7:33 
GeneralRe: Help needed...Image format conversion in VC++ Pin
John R. Shaw8-Aug-04 17:43
John R. Shaw8-Aug-04 17:43 
GeneralRe: Help needed...Image format conversion in VC++ Pin
pavanbabut8-Aug-04 20:02
pavanbabut8-Aug-04 20:02 
GeneralRe: Help needed...Image format conversion in VC++ Pin
John R. Shaw9-Aug-04 3:37
John R. Shaw9-Aug-04 3:37 

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.