I'm looking for a VS 2005 MFC Smart Device Application example project for the Sphere II so I know how to set up the project properly for my application. I'm particularly interested in how the Addititonal Include Directories should be set up. Since I'm using the ADS SDK for CE 5.0, should I add the following includes first so that they are used before the std CE libraries that come with VS 2005? Do these completely replace the std CE libraries? Thanks in advance. C:\Program Files\Windows CE Tools\wce500\ADS_CE_5.0\Mfc\include C:\Program Files\Windows CE Tools\wce500\ADS_CE_5.0\Include\Armv4i C:\Program Files\Windows CE Tools\wce500\ADS_CE_5.0\Atl\include
There are no standard Windows CE libraries or header files that come with Visual Studio. To build for Windows CE you are required to have an SDK that adds the libraries and header files. For this reason we create and distribute an SDK.
All you need to do is create a project and select the ADS SDK which then shows up as your solution platform.
This has not been my experience. I’ve done what you have said, but the project appears to be using CE files from VS2005
For example,
When I include the windows file below, it pulls in the version that came with VS2005, not the SDK version:
#include "afxwin.h" ==> uses C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include\afxwin.h
The reason it pulls certain files from VS2005 is becuase the search path for the Include Directores specifies to use VS2005 before the ADS files. I assume this is correct since this is the default and follows the same pattern as the other SDKs (PocketPC, SmartPhone). Can someone verify that this is correct?
Right, and that's a Windows CE file (hence the "\VC\ce\atlmcf" in the path. This is correct behavior. If you create a project and target the ADS SDK when you create it, the environment will get set up properly to use the files it is supposed to. You don't need to make any modifications to the paths after that unless you're using some third party library. What problems are you having with building applications generated in this way?