Select console application in the workspace wizard.
Select console application in the workspace wizard.
Because i am SOOO anal-retentive...Originally posted by KaL
Code:LPSTR pCurChar; char pName[512]; // strip path and leave exe filename for (pCurChar = (pe32.szExeFile + strlen (pe32.szExeFile)); *pCurChar != '\\' && pCurChar != pe32.szExeFile - 1; --pCurChar) strcpy(pName, pCurChar); strlwr(pName);
this is not a rant or meant to show ANY disrespect... i truely appreciate forums such as these...
the code snippet above from KaL's post HAPPENS to function correctly, but there really should be a semi-colon or a set of empty braces {} after the for-loop. It happens to work because the strcpy is just re-writing pName over and over, ending up at the place you want it to be anyways.
Sorry, but i felt compelled to mention it.
And, as soon as its fixed, my post will look inane, which means i'll eventually come edit it out =P
There are currently 1 users browsing this thread. (0 members and 1 guests)