E
E
Evgeny Petryaev2019-03-29 16:58:31
C++ / C#
Evgeny Petryaev, 2019-03-29 16:58:31

Type conversion error?

Here is the code, I remember when I had to put L-ki before the lines, and now something new again again

if (!UnregisterClass(L"My Window", hinstance))
  {
  }

Error C2664 "BOOL UnregisterClassA(LPCSTR,HINSTANCE)": Cannot convert argument 1 from "const wchar_t [10]" to "LPCSTR"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petryaev, 2019-03-29
@Gremlin92

Removed L-ku and it worked, although one studio requires L, the other does not seem to

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question