The command line bug wss fixed!

Switched _tmain() to main() and TCHAR to char*[], and then everything
worked.