Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Why WCHAR in niclist.c?

2007-01-23
2012-10-15
  • I have got a problem with niclist.exe. When i open it on my PC(x86_64, win xp 64) it shows nothing in device string. But when i open it in 32-bit WINXP, there is some information about devices. I tried to look in debugger and found out, that problem appears, when it makes type convertion from LPSTR to LPWSTR. So i just changed all WCHAR strings to CHAR and all LPWSTR to LPSTR. And it works! Why are you using WCHAR, while it works great and even better with simple char string? Maybe it is better to distribute at least this file without WCHAR's?