C/C++ type conversions

(thanks to Max Payne http://www.gidforums.com/t-4936.html)

Other useful misc

to get info about current working dir

      char cwd[256];
	if (getcwd(cwd, sizeof(cwd)) != NULL)
      MessageBox(cwd,"current working directory is",0);