Convert mbcs to unicode(?)

Hi, how can I change the following lines to get rid of an error?

1
2
char processName[] = "ac_client.exe";
PROCESSENTRY32 pe32 = { sizeof(PROCESSENTRY32) };
(...)
 
if (!strcmp(pe32.szExeFile, processName)) //here the problem occurs (pe32 is underlined with red colour) 


Error says:
IntelliSense: argument of type "WCHAR *" is incompatible with parameter of type "const char *"

I followed tutorial where an author resolved the same error by changing character set from "UNICODE" to "MBCS" but unfortunately this option is not available in the 2013 Express version of Visual Basic which I'm using. I also tried to use "_tcscmp" instead of "strcmp" but the same problem occurs (but this time the processName is underlined). I was searching for a solution on multiple sites but they're all written using difficult language. I'd appreciate if someone could help me with this.

Thanks in advance
Last edited on
Topic archived. No new replies allowed.