error C2664: 'AppendMenuA' : cannot convert

I'm trying to compile my .dll but, I'm getting errors.
cannot convert parameter 4 from 'const wchar_t [7]' to 'LPCSTR''

AppendMenu(hCurrent, MF_STRING | MF_POPUP, (unsigned int)hPopup1, L"File");
Last edited on
IIRC LPCSTR is just a normal char*; so you don't need the L in front of your string.
The problem is that you are mixing wide strings with the width-agnostic function name. If you want to use wide strings, you must use AppendMenuW().
Topic archived. No new replies allowed.