Thread: working example
View Single Post
Old Mar 27th, 2006, 6:50 PM   #3
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 894
Rep Power: 4 The Dark is on a distinguished road
	if (szProcessName == "dtelnet.exe" | szProcessName == "adwin.exe")

You can't compare c strings like this. You need to use strcmp. Also you should use the logical or (||), rather than the bitwise or (|)

	if (strcmp(szProcessName, "dtelnet.exe") == 0 || strcmp(szProcessName,  "adwin.exe") == 0)
The Dark is offline   Reply With Quote