Create a project for your Windows or Windows Mobile device application in Visual Studio.
Prerequisites
On Windows 8,
you must manually enable the .NET 3.5 Framework using the Windows Features control panel
applet before running any applications that require the .NET 3.5 Framework.
- From the Visual Studio main menu, select .
- Select:
- Target platform:
- Windows Mobile 6.0, 6.1, and 6.5
Professional
- Windows
- Library version – .NET version 3.5
- Language – the language used in the resource DLLs, to be
included in the generated project.
Different sets of DLLs are included in the project based on
your selections. The project contains all assemblies and runtime support
DLLs required to access the Object API.
- Click OK to generate the Visual Studio
Project.
- Add all necessary dlls and assemblies:
- Choose and add SMP_HOME\MobileSDK<version>\ObjectAPI\DOE\WM\sup-client.dll
and SMP_HOME\MobileSDK<version>\ObjectAPI\DOE\WM\System.Data.SQLite.dll.
- Choose and add SMP_HOME\MobileSDK<version>\ObjectAPI\DOE\WM\SQLite.Interop.065.DLL
and SMP_HOME\MobileSDK<version>\ObjectAPI\DOE\WM\PocketPC\CMessagingClient.<version>.dll.
- In the Solution window, open
SQLite.Interop.065.DLL and change the property
Copy to Output Directory to Copy
always.
- In the Solution window, open CMessagingClient.<version>.dll and change the
property Copy to Output Directory
to Copy always.
- Build the Solution. From the Visual Studio main menu, select
.
The DLLs are copied to the target directory and the directory
structure is flattened.
Once generated and built, you can write custom mobile
applications based on your selections.
- Develop the mobile business objects (MBOs) that implement the
business logic.
See these online help topics:
-
SAP Mobile WorkSpace - Mobile Business Object Development> Develop > Developing a Mobile Business Object
- Use the Code Generation wizard to generate the C# Object API
code for the mobile business object.
- Add the generated code to the new project you created from the
template.
For more information, see Rebuilding the
Generated Solution in Visual Studio.