I am writing an application for which I am using unicode throughout.
However, I would still like my code to run on a Win9x machine without Microsofts Unicode Layer support.
What I have in mind is something like the following [psuedo code]:
In other words, if the application detects it is running on Windows 2000 or above, it calls the wide function, or on 9.x it calls the ANSI equivalent.Code:if RUNTIME OS is windows 2000 or above WinCallW(); // call wide function else WinCallA(); // call ANSI function
While wide functions will never get called on Win 9.x, my question is will it run? Or will my app die with an error message because I have linked against a wide call? (I don't have any Win9.x platforms I could test it on).
PS. Please don't suggest I just define UNICODE -- it's not what I'm trying to achieve.