these builds cannot co-exist simultaneously.
To use Visual Studio 2005, you need to allow VS to convert the projects
-first, and then you need to adjust the library settings of
-each wxWidgets and sample project.
+first (but install all the SDKs you need to _before_ converting), and then
+you need to adjust the library settings of each wxWidgets and sample project.
Edit the configuration properties for each configuration and in the Librarian,
add a relative path ..\..\lib to each library path. For example:
// including libraries in project files.
#if defined(__VISUALC__) && defined(__WXWINCE__)
+
#if (_WIN32_WCE >= 400) || defined(__POCKETPC__)
+ // No commdlg.lib in Mobile 5.0 Smartphone
+#if !(defined(__SMARTPHONE__) && _WIN32_WCE >= 1200)
#pragma comment(lib,"commdlg.lib")
#endif
+#endif
#if (_WIN32_WCE >= 400) && !defined(wxNO_RTTI)
#pragma comment(lib,"ccrtrtti.lib")
#else
if (!m_hCursorImageList)
{
+#ifndef SM_CXCURSOR
+ // Smartphone may not have these metric symbol
+ int cxCursor = 16;
+ int cyCursor = 16;
+#else
int cxCursor = ::GetSystemMetrics(SM_CXCURSOR);
int cyCursor = ::GetSystemMetrics(SM_CYCURSOR);
-
+#endif
m_hCursorImageList = (WXHIMAGELIST) ImageList_Create(cxCursor, cyCursor, ILC_MASK, 1, 1);
}
SM_CXBORDER,
SM_CYBORDER,
- SM_CXCURSOR,
+#ifdef SM_CXCURSOR
+ SM_CXCURSOR,
SM_CYCURSOR,
+#else
+ -1, -1,
+#endif
SM_CXDOUBLECLK,
SM_CYDOUBLECLK,
#if defined(__WIN32__) && defined(SM_CXDRAG)