]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/main.cpp
moved HasTransparentBackground() from wxUniv to common wxWindow
[wxWidgets.git] / src / msw / main.cpp
index 9d35d670013bc58289bdaade16836ba9b150832a..5251f1f34d20bd25c3dde2a9631d3dc3aed7af31 100644 (file)
@@ -77,15 +77,8 @@ WXDLLEXPORT int wxEntry(HINSTANCE hInstance,
     }
 
 #ifdef __WXWINCE__
-    // WinCE doesn't insert the program itself, so let's
-    // do it here.
-    wxString programName;
-
-    if ( ::GetModuleFileName( (HMODULE) wxGetInstance(), wxStringBuffer(programName, MAX_PATH), MAX_PATH ) == 0)
-    {
-        wxLogLastError(_T("GetModuleFileName"));
-    }
-    args.Insert(programName, 0);
+    // WinCE doesn't insert the program itself, so do it ourselves.
+    args.Insert(wxGetFullModuleName(), 0);
 #endif
 
     int argc = args.GetCount();
@@ -162,7 +155,7 @@ DllMain(HANDLE hModule, DWORD fdwReason, LPVOID WXUNUSED(lpReserved))
 
 HINSTANCE wxhInstance = 0;
 
-HINSTANCE wxGetInstance()
+extern "C" HINSTANCE wxGetInstance()
 {
     return wxhInstance;
 }