From 2e8e834c0aa56f0c945efcceb15ebd5b91d090b4 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 7 Dec 2002 12:38:11 +0000 Subject: [PATCH] Added simplistic makefile/project files for wxWinCE. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/wince/hello.cpp | 169 ++++++++++++ src/msw/wince/hello.rc | 78 ++++++ src/msw/wince/mywxbase.vcp | 535 +++++++++++++++++++++++++++++++++++++ src/msw/wince/mywxbase.vcw | 29 ++ src/msw/wince/newres.h | 41 +++ src/msw/wince/resource.h | 16 ++ 6 files changed, 868 insertions(+) create mode 100644 src/msw/wince/hello.cpp create mode 100644 src/msw/wince/hello.rc create mode 100644 src/msw/wince/mywxbase.vcp create mode 100644 src/msw/wince/mywxbase.vcw create mode 100644 src/msw/wince/newres.h create mode 100644 src/msw/wince/resource.h diff --git a/src/msw/wince/hello.cpp b/src/msw/wince/hello.cpp new file mode 100644 index 0000000000..13430de787 --- /dev/null +++ b/src/msw/wince/hello.cpp @@ -0,0 +1,169 @@ +// ----------------------------------------------------------- +// This hello program will test wxBase for WinCE +// ----------------------------------------------------------- + +// Include WinCE headers +#include +#include +#include "resource.h" + +// Include wxWindows headers +#include "wx/app.h" +#include "wx/string.h" + +// Do not undef DrawText, since we need it here +#include "wx/msw/private.h" + +// ----------------------------------------------------------- +// Hello world code +// ----------------------------------------------------------- + +HINSTANCE hInst = NULL; // Local copy of hInstance +HWND hwndMain = NULL; // Handle to Main window returned from CreateWindow + +TCHAR szAppName[] = TEXT("Hello Pocket PC Application"); +TCHAR szTitle[] = TEXT("Hello Pocket PC"); + +LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) +{ + LRESULT lResult = TRUE; + HDC hdc; + PAINTSTRUCT ps; + RECT rect; + + switch(msg) + { + case WM_COMMAND: + switch (GET_WM_COMMAND_ID(wp,lp)) + { + case IDOK: + SendMessage(hwnd,WM_CLOSE,0,0); + break; + default: + return DefWindowProc(hwnd, msg, wp, lp); + } + break; + case WM_PAINT: + { + hdc = BeginPaint (hwnd, &ps); + GetClientRect (hwnd, &rect); + + // Test wxString + wxString test( wxT("Hello wxWindows!") ); + DrawText (hdc, test.c_str(), -1, &rect, DT_SINGLELINE | DT_CENTER | DT_VCENTER); + + EndPaint (hwnd, &ps); + } + break; + + case WM_CLOSE: + DestroyWindow(hwnd); + break; + + case WM_DESTROY: + PostQuitMessage(0); + break; + + default: + lResult = DefWindowProc(hwnd, msg, wp, lp); + break; + } + return (lResult); +} + + +BOOL InitInstance (HINSTANCE hInstance, int CmdShow ) +{ + + hInst = hInstance; + hwndMain = CreateWindow(szAppName, + szTitle, + WS_VISIBLE, + CW_USEDEFAULT, + CW_USEDEFAULT, + CW_USEDEFAULT, + CW_USEDEFAULT, + NULL, NULL, hInstance, NULL ); + + if ( !hwndMain ) + { + return FALSE; + } + ShowWindow(hwndMain, CmdShow ); + UpdateWindow(hwndMain); + return TRUE; +} + +BOOL InitApplication ( HINSTANCE hInstance ) +{ + WNDCLASS wc; + BOOL f; + + wc.style = CS_HREDRAW | CS_VREDRAW ; + wc.lpfnWndProc = (WNDPROC)WndProc; + wc.cbClsExtra = 0; + wc.cbWndExtra = 0; + wc.hIcon = NULL; + wc.hInstance = hInstance; + wc.hCursor = NULL; + wc.hbrBackground = (HBRUSH) GetStockObject( WHITE_BRUSH ); + wc.lpszMenuName = NULL; + wc.lpszClassName = szAppName; + + f = (RegisterClass(&wc)); + + return f; +} + + +int WINAPI WinMain(HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPWSTR lpCmdLine, + int CmdShow) + +{ + // We use wxBase as a first test + wxInitialize(); + + MSG msg; + HWND hHelloWnd = NULL; + HACCEL hAccel = NULL; + + //Check if Hello.exe is running. If it's running then focus on the window + hHelloWnd = FindWindow(szAppName, szTitle); + if (hHelloWnd) + { + SetForegroundWindow (hHelloWnd); + return 0; + } + + if ( !hPrevInstance ) + { + if ( !InitApplication ( hInstance ) ) + { + return (FALSE); + } + + } + if ( !InitInstance( hInstance, CmdShow ) ) + { + return (FALSE); + } + hAccel = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCELERATOR1)); + + while ( GetMessage( &msg, NULL, 0,0 ) == TRUE ) + { + if (!TranslateAccelerator(hwndMain,hAccel, &msg)) + { + TranslateMessage (&msg); + DispatchMessage(&msg); + } + } + + // Quit wxBase + wxUninitialize(); + + return (msg.wParam); +} + + diff --git a/src/msw/wince/hello.rc b/src/msw/wince/hello.rc new file mode 100644 index 0000000000..c20e59761c --- /dev/null +++ b/src/msw/wince/hello.rc @@ -0,0 +1,78 @@ +//Microsoft Developer Studio generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#define APSTUDIO_HIDDEN_SYMBOLS +#include "newres.h" +#undef APSTUDIO_HIDDEN_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE DISCARDABLE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE DISCARDABLE +BEGIN + "#define APSTUDIO_HIDDEN_SYMBOLS\r\n" + "#include ""newres.h""\r\n" + "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n" + "\0" +END + +3 TEXTINCLUDE DISCARDABLE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Accelerator +// + +IDR_ACCELERATOR1 ACCELERATORS DISCARDABLE +BEGIN + "Q", IDOK, VIRTKEY, CONTROL, NOINVERT +END + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/src/msw/wince/mywxbase.vcp b/src/msw/wince/mywxbase.vcp new file mode 100644 index 0000000000..0c7dda79b7 --- /dev/null +++ b/src/msw/wince/mywxbase.vcp @@ -0,0 +1,535 @@ +# Microsoft eMbedded Visual Tools Project File - Name="hello" - Package Owner=<4> +# Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (WCE ARM) Application" 0x8501 +# TARGTYPE "Win32 (WCE MIPS) Application" 0x8201 + +CFG=hello - Win32 (WCE ARM) Debug + +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "hello.vcn". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "hello.vcn" CFG="hello - Win32 (WCE MIPS) Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "hello - Win32 (WCE MIPS) Release" (based on "Win32 (WCE MIPS) Application") +!MESSAGE "hello - Win32 (WCE MIPS) Debug" (based on "Win32 (WCE MIPS) Application") +!MESSAGE "hello - Win32 (WCE ARM) Release" (based on "Win32 (WCE ARM) Application") +!MESSAGE "hello - Win32 (WCE ARM) Debug" (based on "Win32 (WCE ARM) Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" + +!IF "$(CFG)" == "hello - Win32 (WCE MIPS) Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "MIPSRel" +# PROP BASE Intermediate_Dir "MIPSRel" +# PROP BASE CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}" +# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "MIPSRel" +# PROP Intermediate_Dir "MIPSRel" +# PROP CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}" +# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" +# PROP Target_Dir "" +RSC=rc.exe +# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r +# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r +CPP=clmips.exe +# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /YX /Oxs /M$(CECrtMT) /c +# ADD CPP /nologo /W3 /I "../../../include" /I "../../regex" /I "../../zlib" /D wxUSE_GUI=0 /D "__WXWINCE__"/D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /YX /Oxs /M$(CECrtMT) /c +MTL=midl.exe +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS +# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS + +!ELSEIF "$(CFG)" == "hello - Win32 (WCE MIPS) Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "MIPSDbg" +# PROP BASE Intermediate_Dir "MIPSDbg" +# PROP BASE CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}" +# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "MIPSDbg" +# PROP Intermediate_Dir "MIPSDbg" +# PROP CPU_ID "{D6519010-710F-11D3-99F2-00105A0DF099}" +# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" +# PROP Target_Dir "" +RSC=rc.exe +# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r +# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "MIPS" /d "_MIPS_" /r +CPP=clmips.exe +# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /YX /M$(CECrtMTDebug) /c +# ADD CPP /nologo /W3 /I "../../../include" /I "../../regex" /I "../../zlib" /D wxUSE_GUI=0 /D "__WXWINCE__" /Zi /Od /D "DEBUG" /D "MIPS" /D "_MIPS_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /YX /M$(CECrtMTDebug) /c +MTL=midl.exe +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS +# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /MACHINE:MIPS + +!ELSEIF "$(CFG)" == "hello - Win32 (WCE ARM) Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ARMRel" +# PROP BASE Intermediate_Dir "ARMRel" +# PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}" +# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ARMRel" +# PROP Intermediate_Dir "ARMRel" +# PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}" +# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" +# PROP Target_Dir "" +RSC=rc.exe +# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r +# ADD RSC /l 0x409 /I "../../../include" /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "NDEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r +CPP=clarm.exe +# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /YX /Oxs /M$(CECrtMT) /c +# ADD CPP /nologo /W3 /I "../../../include" /I "../../regex" /I "../../zlib" /D wxUSE_GUI=0 /D "__WXWINCE__" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "NDEBUG" /YX /Oxs /M$(CECrtMT) /c +MTL=midl.exe +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM +# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM + +!ELSEIF "$(CFG)" == "hello - Win32 (WCE ARM) Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ARMDbg" +# PROP BASE Intermediate_Dir "ARMDbg" +# PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}" +# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "ARMDbg" +# PROP Intermediate_Dir "ARMDbg" +# PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}" +# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}" +# PROP Target_Dir "" +RSC=rc.exe +# ADD BASE RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r +# ADD RSC /l 0x409 /d UNDER_CE=$(CEVersion) /d _WIN32_WCE=$(CEVersion) /d "UNICODE" /d "_UNICODE" /d "DEBUG" /d "$(CePlatform)" /d "ARM" /d "_ARM_" /r +CPP=clarm.exe +# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /YX /M$(CECrtMTDebug) /c +# ADD CPP /nologo /W3 /I "../../../include" /I "../../regex" /I "../../zlib" /D wxUSE_GUI=0 /D "__WXWINCE__" /Zi /Od /D "DEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "UNICODE" /D "_UNICODE" /YX /M$(CECrtMTDebug) /c +MTL=midl.exe +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM +# ADD LINK32 commctrl.lib coredll.lib aygshell.lib /nologo /base:"0x00010000" /stack:0x10000,0x1000 /entry:"WinMainCRTStartup" /debug /nodefaultlib:"$(CENoDefaultLib)" /subsystem:$(CESubsystem) /align:"4096" /MACHINE:ARM + +!ENDIF + +# Begin Target + +# Name "hello - Win32 (WCE MIPS) Release" +# Name "hello - Win32 (WCE MIPS) Debug" +# Name "hello - Win32 (WCE ARM) Release" +# Name "hello - Win32 (WCE ARM) Debug" + +# Begin Group "Source Files" +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + +# Begin Source File +SOURCE=.\Hello.cpp +# End Source File + +# Begin Source File +SOURCE=.\hello.rc +# End Source File + +# End Group + +# Begin Group "Common Source Files" +# PROP Default_Filter "cpp;c;cxx;rc;def;r" + +# Begin Source File +SOURCE=..\..\common\appcmn.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\clntdata.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\cmdline.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\config.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\datetime.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\datstrm.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\db.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\dbtable.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\dircmn.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\dynarray.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\dynlib.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\dynload.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\encconv.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\event.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\ffile.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\file.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\fileconf.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\filefn.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\filename.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\filesys.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\fontmap.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\fs_inet.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\fs_mem.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\fs_zip.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\ftp.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\hash.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\hashmap.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\http.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\intl.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\ipcbase.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\list.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\log.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\longlong.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\memory.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\mimecmn.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\module.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\msgout.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\mstream.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\object.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\process.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\protocol.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\regex.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\sckaddr.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\sckfile.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\sckipc.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\sckstrm.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\socket.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\strconv.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\stream.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\string.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\sysopt.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\textbuf.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\textfile.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\timercmn.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\tokenzr.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\txtstrm.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\url.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\utilscmn.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\variant.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\wfstream.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\wxchar.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\zipstrm.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\zstream.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\init.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\common\extended.c +# SUBTRACT CPP /YX /Yc /Yu +# End Source File + +# Begin Source File +SOURCE=..\..\common\unzip.c +# SUBTRACT CPP /YX /Yc /Yu +# End Source File + +# End Group + +# Begin Group "MSW Source Files" +# PROP Default_Filter "" + +# Begin Source File +SOURCE=..\..\msw\dummy.cpp +# ADD CPP /Yc"wx/wxprec.h" +# End Source File + +# Begin Source File +SOURCE=..\..\msw\dde.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\dir.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\main.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\mimetype.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\regconf.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\registry.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\snglinst.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\thread.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\utils.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\utilsexc.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\msw\volume.cpp +# End Source File + +# Begin Source File + +SOURCE=..\..\msw\gsocket.c +# SUBTRACT CPP /YX /Yc /Yu +# End Source File +# Begin Source File + +SOURCE=..\..\msw\gsockmsw.c +# SUBTRACT CPP /YX /Yc /Yu +# End Source File + +# End Group + + +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File +SOURCE=.\resource.h +# End Source File + +# End Group + +# Begin Group "Resource Files" +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" + +# End Group + +# End Target +# End Project diff --git a/src/msw/wince/mywxbase.vcw b/src/msw/wince/mywxbase.vcw new file mode 100644 index 0000000000..3f9b6ed9a0 --- /dev/null +++ b/src/msw/wince/mywxbase.vcw @@ -0,0 +1,29 @@ +Microsoft eMbedded Visual Tools Workspace File, Format Version 3.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "hello"=.\mywxbase.vcp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/src/msw/wince/newres.h b/src/msw/wince/newres.h new file mode 100644 index 0000000000..8c2b2656c4 --- /dev/null +++ b/src/msw/wince/newres.h @@ -0,0 +1,41 @@ +#ifndef __NEWRES_H__ +#define __NEWRES_H__ + +#if !defined(UNDER_CE) +#define UNDER_CE _WIN32_WCE +#endif + +#if defined(_WIN32_WCE) + #if !defined(WCEOLE_ENABLE_DIALOGEX) + #define DIALOGEX DIALOG DISCARDABLE + #endif + #include + #define SHMENUBAR RCDATA + #if defined(WIN32_PLATFORM_PSPC) && (_WIN32_WCE >= 300) + #include + #define AFXCE_IDR_SCRATCH_SHMENU 28700 + #else + #define I_IMAGENONE (-2) + #define NOMENU 0xFFFF + #define IDS_SHNEW 1 + + #define IDM_SHAREDNEW 10 + #define IDM_SHAREDNEWDEFAULT 11 + #endif // _WIN32_WCE_PSPC + #define AFXCE_IDD_SAVEMODIFIEDDLG 28701 +#endif // _WIN32_WCE + +#ifdef RC_INVOKED +#ifndef _INC_WINDOWS +#define _INC_WINDOWS + #include "winuser.h" // extract from windows header + #include "winver.h" +#endif +#endif + +#ifdef IDC_STATIC +#undef IDC_STATIC +#endif +#define IDC_STATIC (-1) + +#endif //__NEWRES_H__ diff --git a/src/msw/wince/resource.h b/src/msw/wince/resource.h new file mode 100644 index 0000000000..651eecf3c2 --- /dev/null +++ b/src/msw/wince/resource.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Developer Studio generated include file. +// Used by Hello.rc +// +#define IDR_ACCELERATOR1 102 +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NO_MFC 1 +#define _APS_NEXT_RESOURCE_VALUE 103 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif -- 2.45.2