My Delphi 2009 app fails to run on Win95
i creating an small application in Delphi 2009. h开发者_C百科ere i got problem that when i run my application in WindowsXP its working but it is not working in Windows95. i know the problem that 95 will not support Unicode. if anyone knows the solution please tell me. and also i have one more idea that converting Unicode to ASCII. is it possible please tell how to do that.
Thanks in Advance
Worm Regards, Yuvaraj
Delphi 2009 produces applications which make Unicode functioncalls. You can't change that. It is not a matter of converting your unicode strings into ascii. If you want your applications to run on Win95 you need Delphi 2007 or earlier.
Microsoft has developed the Microsoft Layer for Unicode (MSLU for short) for specifically this purpose: running applications targeting the UNICODE version of the Win32 API on systems like Win95 without having to alter them. It achieves this by intercepting and forwarding the calls.
Unfortunately, MSLU is by default delivered as a VC++ lib. Rob Kennedy made a Delphi port a couple of years ago, available here, targeting Delphi 2005. I'd imagine rewriting things for D2009 would be a bit of work, but doable.
Another pitfall is that MSLU is a bit outdated tech, and might not cover all of the API's Delphi uses. I guess the only way to find out is to actually go ahead and try to see if it works.
Unicode VCL, which appeared in D2009, can't be used on Windows 9x.
精彩评论