Page 1 of 1

Using network add-in in a Palm only project...

PostPosted: Sun Nov 23, 2008 11:11 pm
by samps

I am trying to use the Network object in an application which is written entirely on the Palm, using PocketC Architect.

A 'shaved' down example looks like this:

Code: Select all
#include "OrbNetwork.oc";

@app myApp {
  creator = "sa44"; // creator id
  name = "AppDapp"; // display name
  dbname = "AppDapp-db"; // name of .prc database

@form myForm {
  id = 1000
  text = "My Form"
  x = 0, y = 0, w = 160, h = 160

handler myApp.onstart()

Network net;

I get one of two errors, either "Unable to open file OrbNetwork.oc" or, if I omit the line that includes this file, an "Unknown Identifier" error at the last line, containing "Network net;".

I have tried several variations of the name of the file to include: orbnetwork.oc, orbnetwork, OrbNetwork, OrbNetwork.prc etc... But I still haven't got past this hurdle.

Hints, please


Re: Using network add-in in a Palm only project...

PostPosted: Mon Nov 24, 2008 12:53 am
by samps
Shame on me for thinking it could be aything to do with PC-Architect :oops:

The OrbNetwork.oc file is slightly larger than what can be contained in a memo---which usually means that it will get truncated during Hotsync and a synchronisation eror will be displayed by the Hotsync Manager.
Instead of sitting around reading useful logfiles, I gladly assumed that all hell had broken loose...

The solution:

Copy the second half of the contents of OrbNetwork.oc to a Palm memo that starts with //onw2.oc and place a line:

Code: Select all
#include "onw2.oc"

as the last line of the 'halved' //OrbNetwork.oc memo.

facial eggs are on me