- Note:
- This section is independent of the previous section, Creating
and Compiling a basic Palm program that uses WebSphere MQ
messaging. You cannot use the CodeWarrior Version 8 Demo to build a
WebSphere MQ Everyplace application because you will have link errors.
To use the example that comes with the SupportPac EAP1:
- Double-click
MQeNativeClient\Palm\samples\MQeExample\MQeExample.mcp
- Click OK if you are asked whether to convert the project
file.
- If CodeWarrior cannot find "Palm OS 3.0 Support":
- Click theProject ("MQeExample") Settings icon.
- Expand the Target group and click Access Paths -->
System Paths --> {Compiler}Palm OS 3.0 Support.
- Click Change.
- From the Browse for Folder window, select the Palm OS Support
that you have on your system. For example, select the Palm OS
3.1 Support directory for CodeWarrior Version 6, the "Palm OS
3.5 Support" directory for CodeWarrior Version 7, and the "Palm OS
Support" directory for CodeWarrior Version 8. These directories are
just below where you have installed CodeWarrior.
- For CodeWarrior Versions 7 and 8, modify the MQeExample.c
file:
- Click the Files tab in your project window.
- Click AppSource.
- Double-click MQeExample.c.
- Change #include<Pilot.h> to
#include<PalmOS.h>
#include<PalmCompatibility.h>
- In the project window, click theProject ("MQeExample") Settings
icon. In the Target group, click the User Paths
radio button.
- Click Change and select the path to where you installed
hmq.lib.
- Click the System Paths radio button (also in the
Targetgroup. Enter paths to where hmq.h and
hmq.Helper.h have been installed.
- In the project window, click the Debug icon to rebuild the
project.