int ret = UF_initialize ();
if (ret) //ret!=0 Failed to initialize Open C API
{
UGPrintErrorMessage(ret);
return FALSE;
}
tag_t  artTag;
UF_PART_load_status_t LoadStatus;
if (UF_PART_open (sUGFileName, &artTag, &LoadStatus))
{
char sPrompt[300];
sprintf(sPrompt,"Error: cannot open %s file\n", sUGFileName);
AfxMessageBox(sPrompt);
return FALSE;
}