function SetDir()
{
// switch to executable directory
_chdir( work_dir.chars ) ;
}

You have to include windows.c and / or stdio.c (try it)


no science involved