Unicode/MBCS compatibility
-
Hello experts, Well,I have a VC++ 6.0 developed application, supporting MBCS, which is the default for VC++ 6.0. Also, let me tell you I am using Windows 2000 platform. Then, I have compiled it with UNICODE MFC dlls and static librarys[ UAFX*.lib and Unicode MFC dlls] and got the UNICODE version of application. Now, my requirement is to develop one single application that can support both Unicode and MBCS[DBCS].... Well, I dont know wehether this is possible, if Possible, please let me know how to go for. Thanks & Regards, Mr Prasad G.
-
Hello experts, Well,I have a VC++ 6.0 developed application, supporting MBCS, which is the default for VC++ 6.0. Also, let me tell you I am using Windows 2000 platform. Then, I have compiled it with UNICODE MFC dlls and static librarys[ UAFX*.lib and Unicode MFC dlls] and got the UNICODE version of application. Now, my requirement is to develop one single application that can support both Unicode and MBCS[DBCS].... Well, I dont know wehether this is possible, if Possible, please let me know how to go for. Thanks & Regards, Mr Prasad G.
While I'm not an expert, I will try to answer your question. Use the TCHAR macro's for all your string manipulations (CString does this) ie. use 'TCHAR' instead of 'char' or 'WCHAR' use '_tcscpy' instead of 'strcpy', '_mbscpy', or 'wcscpy' HTH --- It may be that your sole purpose in life is simply to serve as a warning to others.