News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Printf ws error?

Started by bitcoin, April 27, 2020, 05:16:03 PM

Previous topic - Next topic

bitcoin

Code such as
WCHAR wchCompName[256];
DWORD dwSize = 255;

if (GetComputerNameW(wchCompName, &dwSize))
printf("%ws\n", wchCompName);

print 'ws', not unicode string. Why?

TimoVJL

use %ls and read help file
May the source be with you

Ricardo Bermudez