Using the SupportPac EAP1 example project file and code

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:

  1. Double-click MQeNativeClient\Palm\samples\MQeExample\MQeExample.mcp
  2. Click OK if you are asked whether to convert the project file.
  3. If CodeWarrior cannot find "Palm OS 3.0 Support":
    1. Click theProject ("MQeExample") Settings icon.
    2. Expand the Target group and click Access Paths --> System Paths --> {Compiler}Palm OS 3.0 Support.
    3. Click Change.
    4. 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.
  4. For CodeWarrior Versions 7 and 8, modify the MQeExample.c file:
    1. Click the Files tab in your project window.
    2. Click AppSource.
    3. Double-click MQeExample.c.
    4. Change #include<Pilot.h> to
      #include<PalmOS.h>
      #include<PalmCompatibility.h>
      
  5. In the project window, click theProject ("MQeExample") Settings icon. In the Target group, click the User Paths radio button.
  6. Click Change and select the path to where you installed hmq.lib.
  7. Click the System Paths radio button (also in the Targetgroup. Enter paths to where hmq.h and hmq.Helper.h have been installed.
  8. In the project window, click the Debug icon to rebuild the project.


© IBM Corporation 2002. All Rights Reserved