user22323
user22323

Reputation: 189

cannot convert parameter from 'PCHAR' to 'LPCWSTR'

Upvotes: 0

Views: 1297

Answers (1)

Jonathan Potter
Jonathan Potter

Reputation: 37122

PCHAR is a typedef for char whereas LPCWSTR is a typedef for const wchar_t*, and in a Unicode build lstrlen is a macro for the Unicode function lstrlenW.

You should call lstrlenA specifically to use the ANSI function.

Upvotes: 1

Related Questions