Every CVI program receives its own name in the first parameter of the main () function.
I store this name in a variable to display in the 'Info' panel, this way:
/****************************************************************************/
int main (int argc, char *argv[])
{
int nc, ctrl;
int tmpH = 0, error = 0;
char a[512];
if (InitCVIRTE (0, argv, 0) == 0)
return -1; /* out of memory */
//-----------------------------------------------------
// Initial operations
//-----------------------------------------------------
StringUpperCase (argv[0]);
strcpy (pgm, argv[0]);
if ((nc = FindPattern (pgm, 0, -1, ".", 0, 0)) > 0) pgm[nc] = 0; // Cut away the extension
...
Hope this helps
Roberto