[mercury-users] argc and argv?

Ralph Becket rafe at cs.mu.OZ.AU
Fri Apr 23 10:58:10 AEST 2004


Maurizio Colucci, Thursday, 22 April 2004:
> Hello, for my application I need to do some basic binding of Qt and openGL 
> (using the foreign C language interface). In particular, the only way to 
> initialize qt is to call
> 
>    QApplication(argc, argv)
> 
> How can I know argc and argv?

io.command_line_arguments/3 gives you the list of command line arguments
and getopt.m provides the means to parse them.  Of course, you can 
always construct your own argc and argv using the C interface if you
have to pass them to Qt.

-- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list