Unicode controls for ANSI Build
-
I've got an app created as an ANSI Build and want to use a few controls such as an Edit control (CEdit) as Unicode, if running on Win2K or later. I don't want to build the app as Unicode at this time, as I want to support W98 and don't want to have to use the MS W98 Unicode Layer. I've pretty much spent the day Google'ing and reading and it seems doable, but I've yet to find any concrete info on how. One idea is to provide my own implementation of CWnd::CreateEx() that calls CreateWindowExW() if we are running on W2K/XP etc. but I suspect there is more to it than that. Has anyone done this or have any suggestions? Mucho thanks in advance. Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
-
I've got an app created as an ANSI Build and want to use a few controls such as an Edit control (CEdit) as Unicode, if running on Win2K or later. I don't want to build the app as Unicode at this time, as I want to support W98 and don't want to have to use the MS W98 Unicode Layer. I've pretty much spent the day Google'ing and reading and it seems doable, but I've yet to find any concrete info on how. One idea is to provide my own implementation of CWnd::CreateEx() that calls CreateWindowExW() if we are running on W2K/XP etc. but I suspect there is more to it than that. Has anyone done this or have any suggestions? Mucho thanks in advance. Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
If the app itself is unicode unaware, then how do you expect a child window of the app to handle unicode? You will have to do a unicode build to make the app work with unicode as far as I know.
Neville Franks wrote:
it seems doable
In case if you did it, please post a reply here and I am very much interested to know how it is. :rose:
-
If the app itself is unicode unaware, then how do you expect a child window of the app to handle unicode? You will have to do a unicode build to make the app work with unicode as far as I know.
Neville Franks wrote:
it seems doable
In case if you did it, please post a reply here and I am very much interested to know how it is. :rose:
Aljechin wrote:
If the app itself is unicode unaware, then how do you expect a child window of the app to handle unicode? You will have to do a unicode build to make the app work with unicode as far as I know.
It is defintely doable. I just have worked out precisely how yet. In the early days of Windows NT MS suggested this approach so you could create a single exe to support W9x and NT. Here is some reading for you: http://www.microsoft.com/msj/0499/multilangunicode/multilangunicode.aspx[^] http://groups.google.com/group/microsoft.public.win32.programmer.international/tree/browse_frm/thread/f6d20df6e32dd033/25f27a4dffbd9603?rnum=11&hl=en&q=Using+Unicode+in+an+MFC+Ansi+App&_done=%2Fgroup%2Fmicrosoft.public.win32.programmer.international%2Fbrowse_frm%2Fthread%2Ff6d20df6e32dd033%2F06bdd51672de1c19%3Flnk%3Dst%26q%3DUsing+Unicode+in+an+MFC+Ansi+App%26rnum%3D8%26hl%3Den%26#doc_c83c4437a4e57c27[^] and there is plenty more. Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com