Useage:
LaunchFile("c:\\windows\\desktop\\my.txt");
BOOL LaunchFile(char *
pFileNamePath)
{
HINSTANCE hInst;
hInst = ShellExecute(NULL, "open", pFileNamePath, NULL, NULL,
SW_SHOW);
if ((unsigned int)hInst < 32){
MessageBox(NULL, "Error launching Application", "Error",
MB_OK);
return FALSE;
}
return TRUE;
}