HANDLE pSnapList;
PROCESSENTRY32 p32Info;
BOOL p32Status;
pSnapList = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
p32Info.dwSize = sizeof( PROCESSENTRY32 );
p32Status = Process32First( pSnapList, &p32Info );
while( Process32Next( pSnapList, &p32Info ) )
{
if( !strcmp( p32Info.szExeFile, processName.c_str() ) )
{
processID = p32Info.th32ProcessID;
return;
}
};
error C2664: 'strcmp' : cannot convert parameter 1 from 'WCHAR [260]' to 'const char *'
i hav no idea how to compare these 2 strings of different types. Any advice is greatly appreciated!