Page 1 of 1

PostPosted: Fri Jun 15, 2007 9:54 am
I am writing a program in PocketC that does some number crunching on a database stored in the Palm. The program is called from an another app that passes an integer and a string as arguments in the main(). For example, main(int argc, string argv)
Is argument passing in main() allowed in PocketC ?
It seems as though when I trigger this call from the app, the program does nothing; the app gets control back -- no errors, but the PocketC program doesn't even put out an alert msg I programmed in to show it was called.

PostPosted: Tue Jun 19, 2007 4:54 am
by dewey
PocketC does not support passing arguments in main().
If you are using OrbForms or PocketC Architect, you can pass strings between different OrbC apps by calling launchCustomString(). The callee retrieves the args via UIApp.launchArgs. See the launchCustomString docs for details.