]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/dummy.cpp
7 * Copyright: (c) 1993, AIAI, University of Edinburgh
10 /* static const char sccsid[] = "@(#)dummy.cc 1.2 5/9/94"; */
12 /* A dummy file to include wx.h. If precompiling wx.h, I
13 * always start by compiling this and producing the PCH file.
14 * Then subsequent source files use the PCH file.
16 * If precompiling wx.h for wxWindows and derived apps,
17 * link dummy.obj with your program (the MSC 7 linker complains otherwise).
19 * This is the only convenient way I found to use precompiled headers
22 * This will produce a big PCH file.
27 #if defined(__BORLANDC__)
28 #if !(defined(__WIN32__) || defined(__NT__) || defined(__WIN32__))
29 #pragma hdrfile "c:\wx\src\msw\wx.pch"
35 #include "wx/wxprec.h"
42 // Foils optimizations in Visual C++ (see also app.cpp). Without it,
43 // dummy.obj isn't linked and we get a linker error.
44 #if defined(_MSC_VER) && defined(__WIN16__)
48 #if defined(WXUSINGDLL)
50 // NT defines APIENTRY, 3.x not
51 #if !defined(APIENTRY)
52 #define APIENTRY FAR PASCAL
61 WinMain(HINSTANCE hInstance
, HINSTANCE hPrevInstance
, LPSTR m_lpCmdLine
,
64 return wxEntry((WXHINSTANCE
) hInstance
, (WXHINSTANCE
) hPrevInstance
, m_lpCmdLine
, nCmdShow
);