Where and How to evaluate commandline args?

it works if i put my code into abmain.c, but it will remove after changing GUI.

Where should i do it instead?

Robert

In the PHAB you can specify a init function as project property which is called with argc and argv.