Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

NON-FATAL Error (GetFileTime and GetFileDate)

$
0
0

Hello ,

 

I want to include and display the date and time in the Title Panel of the project, but when I start the program I got an error NON-FATAL Error. Here is the code of mine. I would like to ask what is missing to my code. The utility.h already included in the header.

 

GetProjectDir(projdir);
 //sprintf(szTmp,"%s\\%s_dbg.exe",projdir,szSoftwareName);
 sprintf(szTmp,"%s\\%s_v1.1.exe",projdir,szSoftwareName);
 GetFileTime (szTmp, &hr, &min, &sec);
 GetFileDate (szTmp, &mon, &day, &yr);
 sprintf(szTmp,"%s  %d/%d/%d %d:%d:%d  %s %s",szSoftwareName,mon,day,yr,hr,min,sec,szAuthor,SW_Version);
 SetPanelAttribute (panelHandle_Cobot, ATTR_TITLE, szTmp);

 

NON-FATAL RUN-TIME ERROR: Function CVI_GetFileTime (return value ==-1)

 

 

 

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>