The only way I know to calculate the number of bytes of DBCS string in a given encoding is: 1. Translate the string to Unicode (MultiByteToWideChar) 2. Translate the Unicode string to the previous encoding (WideCharToMultiByte) this function return the size of DBCS string in bytes. This work (in all the case that I know of) :) . Good luck.
D
daniel_zy
@daniel_zy
Posts
-
DBCS issue -
windows services and windows 20081. Output debug string does not work from service on 2008 (shared object) 2. Windows probably catch your
_asm int 3.
1. Look at the event log. 2. Add log to file. -
windows services and windows 2008Did the the service process start at all (You can check it using process monitor)
-
WebBrowser keyboard handling in MFC DLL - not workingI have modeless dialog is derived from CDHTMLDialog that is hosted in DLL linked to MFC statically. the problem is that keys such as tab don't work. I have read Google documentation 1. for class derived from CDialog the solution in kb233263 work 2. for class derived from CDHTMLDialog this solution does not work 3. regarding the solution kb175502
PreTranslateMessage(MSG* pMsg)
is not called for the dialog class, so I don't understand what to do there Thanks for any help