Added Marco's first WinCE files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
28
src/msw/wince/dummy.cpp
Normal file
28
src/msw/wince/dummy.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wince/dummy.cpp
|
||||
// Purpose: Main/DllMain
|
||||
// Author: Marco Cavallini
|
||||
// Modified by:
|
||||
// Created: 08/11/2002
|
||||
// RCS-ID:
|
||||
// Copyright: (c) KOAN SAS ( www.koansoftware.com )
|
||||
// Licence: wxWindows license
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/* A dummy file to include wx.h. If precompiling wx.h, I
|
||||
* always start by compiling this and producing the PCH file.
|
||||
* Then subsequent source files use the PCH file.
|
||||
*
|
||||
* This will produce a big PCH file.
|
||||
*/
|
||||
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
|
||||
// Foils optimizations in Visual C++ (see also app.cpp). Without it,
|
||||
// dummy.obj isn't linked and we get a linker error.
|
||||
|
||||
char wxDummyChar = 0;
|
||||
|
||||
|
||||
|
||||
52
src/msw/wince/main.cpp
Normal file
52
src/msw/wince/main.cpp
Normal file
@@ -0,0 +1,52 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wince/main.cpp
|
||||
// Purpose: Main/DllMain
|
||||
// Author: Marco Cavallini
|
||||
// Modified by:
|
||||
// Created: 08/11/2002
|
||||
// RCS-ID:
|
||||
// Copyright: (c) KOAN SAS ( www.koansoftware.com )
|
||||
// Licence: wxWindows license
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
//#include "wx/event.h"
|
||||
//#include "wx/app.h"
|
||||
|
||||
//#include "wx/msw/private.h"
|
||||
|
||||
// from src/msw/app.cpp
|
||||
//extern void WXDLLEXPORT wxEntryCleanup();
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
BOOL APIENTRY DllMain( HANDLE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
HINSTANCE wxhInstance = 0;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// global functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
HINSTANCE wxGetInstance()
|
||||
{
|
||||
return wxhInstance;
|
||||
}
|
||||
|
||||
void wxSetInstance(HINSTANCE hInst)
|
||||
{
|
||||
wxhInstance = hInst;
|
||||
}
|
||||
3033
src/msw/wince/wxBase.vcp
Normal file
3033
src/msw/wince/wxBase.vcp
Normal file
File diff suppressed because it is too large
Load Diff
34
src/msw/wince/wxBase.vcw
Normal file
34
src/msw/wince/wxBase.vcw
Normal file
@@ -0,0 +1,34 @@
|
||||
Microsoft eMbedded Visual Tools Workspace File, Format Version 3.00
|
||||
###############################################################################
|
||||
# Author: Marco Cavallini
|
||||
# Created: 05/12/2002
|
||||
# Copyright: (c) KOAN SAS ( www.koansoftware.com )
|
||||
###############################################################################
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "wxBase"=".\wxBase.vcp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
6177
src/msw/wince/wxWinCE.vcp
Normal file
6177
src/msw/wince/wxWinCE.vcp
Normal file
File diff suppressed because it is too large
Load Diff
34
src/msw/wince/wxWinCE.vcw
Normal file
34
src/msw/wince/wxWinCE.vcw
Normal file
@@ -0,0 +1,34 @@
|
||||
Microsoft eMbedded Visual Tools Workspace File, Format Version 3.00
|
||||
###############################################################################
|
||||
# Author: Marco Cavallini
|
||||
# Created: 05/12/2002
|
||||
# Copyright: (c) KOAN SAS ( www.koansoftware.com )
|
||||
###############################################################################
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "wxWinCE"=.\wxWinCE.vcp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
89
src/msw/wince/wxbase.cpp
Normal file
89
src/msw/wince/wxbase.cpp
Normal file
@@ -0,0 +1,89 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: msw/wince/wxbase.cpp
|
||||
// Purpose: wxBase
|
||||
// Author: Marco Cavallini
|
||||
// Modified by:
|
||||
// Created: 05/12/2002
|
||||
// RCS-ID:
|
||||
// Copyright: (c) KOAN SAS ( www.koansoftware.com )
|
||||
// Licence: wxWindows license
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
/* I don't remember why This does not work under emulation
|
||||
#ifdef _WIN32_WCE_EMULATION
|
||||
#error 'This does not work under emulation'
|
||||
#endif
|
||||
*/
|
||||
|
||||
/////////////////////////////////
|
||||
#if 0
|
||||
The hardware is identified by platform specific defines; usually of the form
|
||||
WCE_PLATFORM_XXXX where XXXX is the name of the platform. Pocket PCs use the
|
||||
older Palm Size PC define WIN32_PLATFORM_PSPC which has a value for the
|
||||
version number of the platform. A Pocket PC 2002 device build can be
|
||||
detected as follows:
|
||||
|
||||
#if defined(WIN32_PLATFORM_PSPC) && WIN32_PLATFORM_PSPC == 310
|
||||
// Put Pocket PC 2002 specific code here...
|
||||
#endif
|
||||
// WINCE
|
||||
#if defined(_WIN32_WCE)
|
||||
#pragma message("\t wxWindows Target: WINDOWS CE")
|
||||
// #include <windows.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (_WIN32_WCE)
|
||||
#if _WIN32_WCE == 300
|
||||
#pragma message("\t WINDOWS-CE 3.00")
|
||||
#elif _WIN32_WCE == 310
|
||||
#pragma message("\t WINDOWS-CE 3.10")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
// WINCE
|
||||
#if defined(_WIN32_WCE)
|
||||
#pragma message("\t wxWindows Target: WINDOWS CE")
|
||||
#endif
|
||||
|
||||
// WIN32
|
||||
#if !defined(_WIN32_WCE) && defined(_WIN32)
|
||||
#pragma message("\t wxWindows Target: WINDOWS 32")
|
||||
#endif
|
||||
|
||||
// LINUX
|
||||
#if defined(__GNUG__)
|
||||
#pragma message("\t wxWindows Target: LINUX GNU")
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Peform some macro test
|
||||
/////////////////////////////////
|
||||
|
||||
#if wxUSE_GUI
|
||||
#if defined(__WXMSW__)
|
||||
#pragma message("\t CE : __WXMSW__")
|
||||
#elif defined(__WXWINCE__)
|
||||
#pragma message("\t CE : __WXWINCE__")
|
||||
#elif defined(__WXMOTIF__)
|
||||
#pragma message("\t CE : __WXMOTIF__")
|
||||
#elif defined(__WXMGL__)
|
||||
#pragma message("\t CE : __WXMGL__")
|
||||
#elif defined(__WXGTK__)
|
||||
#pragma message("\t CE : __WXGTK__")
|
||||
#elif defined(__WXX11__)
|
||||
#pragma message("\t CE : __WXX11__")
|
||||
#elif defined(__WXMAC__)
|
||||
#pragma message("\t CE : __WXMAC__")
|
||||
#elif defined(__WXPM__)
|
||||
#pragma message("\t CE : __WXPM__")
|
||||
#elif defined(__WXSTUBS__)
|
||||
#pragma message("\t CE : __WXSTUBS__")
|
||||
#endif
|
||||
#endif // !GUI
|
||||
89
src/msw/wince/wxwince.cpp
Normal file
89
src/msw/wince/wxwince.cpp
Normal file
@@ -0,0 +1,89 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: msw/wince/wince.cpp
|
||||
// Purpose: Main/DllMain
|
||||
// Author: Marco Cavallini
|
||||
// Modified by:
|
||||
// Created: 08/11/2002
|
||||
// RCS-ID:
|
||||
// Copyright: (c) KOAN SAS ( www.koansoftware.com )
|
||||
// Licence: wxWindows license
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
/* I don't remember why This does not work under emulation
|
||||
#ifdef _WIN32_WCE_EMULATION
|
||||
#error 'This does not work under emulation'
|
||||
#endif
|
||||
*/
|
||||
|
||||
/////////////////////////////////
|
||||
#if 0
|
||||
The hardware is identified by platform specific defines; usually of the form
|
||||
WCE_PLATFORM_XXXX where XXXX is the name of the platform. Pocket PCs use the
|
||||
older Palm Size PC define WIN32_PLATFORM_PSPC which has a value for the
|
||||
version number of the platform. A Pocket PC 2002 device build can be
|
||||
detected as follows:
|
||||
|
||||
#if defined(WIN32_PLATFORM_PSPC) && WIN32_PLATFORM_PSPC == 310
|
||||
// Put Pocket PC 2002 specific code here...
|
||||
#endif
|
||||
// WINCE
|
||||
#if defined(_WIN32_WCE)
|
||||
#pragma message("\t wxWindows Target: WINDOWS CE")
|
||||
// #include <windows.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (_WIN32_WCE)
|
||||
#if _WIN32_WCE == 300
|
||||
#pragma message("\t WINDOWS-CE 3.00")
|
||||
#elif _WIN32_WCE == 310
|
||||
#pragma message("\t WINDOWS-CE 3.10")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
// WINCE
|
||||
#if defined(_WIN32_WCE)
|
||||
#pragma message("\t wxWindows Target: WINDOWS CE")
|
||||
#endif
|
||||
|
||||
// WIN32
|
||||
#if !defined(_WIN32_WCE) && defined(_WIN32)
|
||||
#pragma message("\t wxWindows Target: WINDOWS 32")
|
||||
#endif
|
||||
|
||||
// LINUX
|
||||
#if defined(__GNUG__)
|
||||
#pragma message("\t wxWindows Target: LINUX GNU")
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Peform some macro test
|
||||
/////////////////////////////////
|
||||
|
||||
#if wxUSE_GUI
|
||||
#if defined(__WXMSW__)
|
||||
#pragma message("\t CE : __WXMSW__")
|
||||
#elif defined(__WXWINCE__)
|
||||
#pragma message("\t CE : __WXWINCE__")
|
||||
#elif defined(__WXMOTIF__)
|
||||
#pragma message("\t CE : __WXMOTIF__")
|
||||
#elif defined(__WXMGL__)
|
||||
#pragma message("\t CE : __WXMGL__")
|
||||
#elif defined(__WXGTK__)
|
||||
#pragma message("\t CE : __WXGTK__")
|
||||
#elif defined(__WXX11__)
|
||||
#pragma message("\t CE : __WXX11__")
|
||||
#elif defined(__WXMAC__)
|
||||
#pragma message("\t CE : __WXMAC__")
|
||||
#elif defined(__WXPM__)
|
||||
#pragma message("\t CE : __WXPM__")
|
||||
#elif defined(__WXSTUBS__)
|
||||
#pragma message("\t CE : __WXSTUBS__")
|
||||
#endif
|
||||
#endif // !GUI
|
||||
Reference in New Issue
Block a user