]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/dummy.cpp
7 * Copyright: (c) 1993, AIAI, University of Edinburgh
10 /* A dummy file to include wx.h. If precompiling wx.h, I
11 * always start by compiling this and producing the PCH file.
12 * Then subsequent source files use the PCH file.
14 * If precompiling wx.h for wxWindows and derived apps,
15 * link dummy.obj with your program (the MSC 7 linker complains otherwise).
17 * This is the only convenient way I found to use precompiled headers
20 * This will produce a big PCH file.
23 #if defined(__BORLANDC__)
24 #if !(defined(__WIN32__) || defined(__NT__) || defined(__WIN32__))
25 #pragma hdrfile "c:\wx\src\msw\wx.pch"
31 #include "wx/wxprec.h"
39 #include "wx/msw/msvcrt.h"
41 // Foils optimizations in Visual C++ (see also app.cpp). Without it,
42 // dummy.obj isn't linked and we get a linker error.
47 // if wxWindows is in the DLL link our entry point with the application
48 #if defined(WXUSINGDLL)
50 // NT defines APIENTRY, 3.x not
51 #if !defined(APIENTRY)
52 #define APIENTRY FAR PASCAL
61 WinMain(HINSTANCE hInstance
,
62 HINSTANCE hPrevInstance
,
66 wxCrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF
);
68 return wxEntry((WXHINSTANCE
) hInstance
, (WXHINSTANCE
) hPrevInstance
,
69 m_lpCmdLine
, nCmdShow
);