Newbie. I have a standard MFC application with which I can open .bmp files etc, on the top border the name of the file appears. How can I store the name of the current file that is open into a variable. Is it something to do with
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
TRIED THIS (DOESN'T WORK):
??????
CString currentFile;
currentFile = __FILE__;
??????
I want to store it in a variable so that I can use the name of file as a ID in a database.
Any help would be much appreciated...
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
TRIED THIS (DOESN'T WORK):
??????
CString currentFile;
currentFile = __FILE__;
??????
I want to store it in a variable so that I can use the name of file as a ID in a database.
Any help would be much appreciated...