For a CLR type program in Visual C++, I need to record the file date of the version of the program being run. That seems like a very normal thing to do but I can't find a solution (that works) on the web.
I'm able to read the date of any file from within my program (not easy by the way) but it needs the absolute path. (In this case to the very program being run.)
On the web I found two suggestions neither of which work probably because I am so unfamiliar with Windows programming.
I don't understand the error messages (What's a UDT?) and pressing F1 on any of those entities is of no use to a beginner because the MSDN help is so terse. (Their examples don't work either.)
2. get_module_directory(filebuf, sizeof(x) / sizeof((x)) ); strikes error C2248 and F1 on this function is "No Information Available"
-> Can anyone show what's needed in the way of a #include or declaration to get those to work?
-> Is there an eaiser way to get the path to the program you are in?