Thread: Unicode
View Single Post
Old 17th November 2009, 13:41   #335
Senior Member
Join Date: Sep 2007
Posts: 204
@Wizou: the problem with that check is that if the user calls CreateFile() with 'w' in the Unicode version of NSIS, that's not wrong either. CreateFile should still resolve to CreateFileW.

Like I said, the only problems I've seen are the string functions that mimic standard library calls. There aren't that many and they are all lowercased like C standard library functions. If the person has programmed C at all, functions like strlen should jump out as taking char* and not wchar_t*. So it should raise a warning flag and the user should realize he should put a W at the end.

Unicode NSIS advocate -- for latest build and source.
jimpark is offline   Reply With Quote