View topic - Passing args to apps developed in PhAB

Passing args to apps developed in PhAB

Read-only archive of qnx.cafe (generail discussion forum) at inn.qnx.com

Passing args to apps developed in PhAB

Postby Garry » Sun Oct 17, 2004 1:29 am

Hi,
Quick question, as the 'main' functions is handled elsewhere in a PhAb
app, how to I access argv and argc? I need to make a PhAb app which has
args passed on the command line.

Cheers

Garry
Garry
 

Re: Passing args to apps developed in PhAB

Postby John McClurkin » Mon Oct 18, 2004 11:39 am

Garry wrote:
Hi,
Quick question, as the 'main' functions is handled elsewhere in a
PhAb app, how to I access argv and argc? I need to make a PhAb app which
has args passed on the command line.

Cheers

Garry
Look at the "Working With Code" chapter of the "Photon Microgui

Programer's Guide". There is an example of blending photon and user
arguments on the command line.
John McClurkin
 

Re: Passing args to apps developed in PhAB

Postby Garry » Mon Oct 18, 2004 8:46 pm

John McClurkin wrote:
Garry wrote:

Hi,
Quick question, as the 'main' functions is handled elsewhere in a
PhAb app, how to I access argv and argc? I need to make a PhAb app
which has args passed on the command line.

Cheers

Garry

Look at the "Working With Code" chapter of the "Photon Microgui
Programer's Guide". There is an example of blending photon and user
arguments on the command line.

I should have known to look more carefully in the docs, thanks, it's
working now.
Garry
 


Return to qnx.cafe

Who is online

Users browsing this forum: No registered users and 3 guests