MidgetsBro
Oct 7th, 2002, 04:43 PM
Resolved by other means
I am using the following code which I found on this site to get the application filename and path, etc., but I want to just get the path so I can append "\mysql\setup.exe" to the end of it. What function can I use to strip the program's name off the end after the last '\\'?
char filename[MAX_PATH];
GetModuleFileName(GetModuleHandle(NULL), filename, MAX_PATH);
MessageBox(filename, "MasterSaw Installer", MB_OK);
BTW, I am using MFC.
Thanks.
I am using the following code which I found on this site to get the application filename and path, etc., but I want to just get the path so I can append "\mysql\setup.exe" to the end of it. What function can I use to strip the program's name off the end after the last '\\'?
char filename[MAX_PATH];
GetModuleFileName(GetModuleHandle(NULL), filename, MAX_PATH);
MessageBox(filename, "MasterSaw Installer", MB_OK);
BTW, I am using MFC.
Thanks.