+// return the full name of the program file
+inline wxString wxGetFullModuleName()
+{
+ wxString fullname;
+ if ( !::GetModuleFileName
+ (
+ (HMODULE)wxGetInstance(),
+ wxStringBuffer(fullname, MAX_PATH),
+ MAX_PATH
+ ) )
+ {
+ wxLogLastError(_T("GetModuleFileName"));
+ }
+
+ return fullname;
+}
+