Smartphone
Creating a Smartphone CAB with Pelles C is easy. Basically you just need to add one file, and a special build command to your project:
1. Create a text file called sample.cb, where "sample" is the name of your application. Add the following text:
ProcessorType = StrongARM
Provider = "TrajectoryLabs.com"
AppName = "Sample Game (TM)"
VersionMin = 4.21
VersionMax = 100
TargetDir = "%CE1%\Sample Game"
File = "sample.exe", 0x40000002
ShortCut = "Sample Game","sample.exe","%CE14%"
|
2. Click on the Target files button, above the project tree, and then right-click on sample.exe
and select Properties from the context menu. Add the following to the list of build commands:
echo Building sample.cb...
POCB sample.cb /S |

3. For Windows Mobile 5.0 on the Smartphone, Select Project -> Project Options -> Linker and set Subsystem Major to 5 and Minor to 1.

4. Select Project -> Rebuild all files, the cab file is created.
5. For Smartphone, you will need a digital signature to avoid an Unknown Publisher warning message when installing.
Here is some info on Digital Signatures.
Pocket PC
Building a CAB file for Pocket PC is exactly the same with a couple minor changes to the sample.cb file and Build commands. You will not need a digital signature for Pocket PC:
sample.cb for Pocket PC:
ProcessorType = StrongARM
UnsupportedPlatforms = "HPC","Jupiter"
VersionMin = 3.0
VersionMax = 100.0
Provider = "Sample Corporation"
AppName = "Sample Game (TM)"
TargetDir = "%CE1%\SampleApp"
File = "sample.exe", 0x40000002
ShortCut = "Sample Game","sample.exe","%CE14% |
Build commands for Pocket PC:
echo Building sample.cb...
POCB sample.cb |
|