// Windows-specific wxEntry
// ----------------------------------------------------------------------------
-int wxEntry(WXHINSTANCE hInstance,
- WXHINSTANCE WXUNUSED(hPrevInstance),
- char *pCmdLine,
- int nCmdShow)
+WXDLLEXPORT int wxEntry(HINSTANCE hInstance,
+ HINSTANCE WXUNUSED(hPrevInstance),
+ char *pCmdLine,
+ int nCmdShow)
{
// remember the parameters Windows gave us
- wxSetInstance((HINSTANCE)hInstance);
+ wxSetInstance(hInstance);
wxApp::m_nCmdShow = nCmdShow;
// parse the command line
#if !defined(_WINDLL)
+#ifdef __WXWINCE__
+int WINAPI WinMain(HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPWSTR lpCmdLine,
+ int nCmdShow)
+{
+ return wxEntry(hInstance, hPrevInstance, (char*) lpCmdLine, nCmdShow);
+}
+#else
int PASCAL WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
- return wxEntry((WXHINSTANCE) hInstance,
- (WXHINSTANCE) hPrevInstance,
- lpCmdLine,
- nCmdShow);
+ return wxEntry(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}
+#endif
#else // _WINDLL
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
- return wxEntry((WXHINSTANCE) hModule);
+ return wxEntry(hModule);
case DLL_PROCESS_DETACH:
wxEntryCleanup();