C language > Beginner questions

Printf ws error?

(1/1)

bitcoin:
Code such as

--- Code: ---WCHAR wchCompName[256];
DWORD dwSize = 255;

if (GetComputerNameW(wchCompName, &dwSize))
printf("%ws\n", wchCompName);
--- End code ---
print 'ws', not unicode string. Why?

TimoVJL:
use %ls and read help file

Ricardo Bermudez:

--- Quote from: TimoVJL on April 27, 2020, 08:02:46 PM ---use %ls and read help file

--- End quote ---

That was going to say

Navigation

[0] Message Index

Go to full version