Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptappinit.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptappinit.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptappinit.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptappinit.html on line 8
Initialize an application and create the main window
PtWidget_t *PtAppInit( PtAppContext_t *app_context,
int *argc,
char **argv,
int num_args,
PtArg_t const *args );
ph
This function:
- Initializes the connection to the Photon Manager.
- Initializes the widget library.
- Creates a default application context
(app_context) if one doesn't exist.
- Creates a main window using the
num_args and args
arguments—these are the same arguments passed to
PtCreateWidget().
|
The application that calls PtAppInit() must have the appropriate permissions to read from and write to the attached Photon server, or the call will fail. |
A pointer to the main window, or
NULL if an error occurs.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PhAttach(),
PtArg_t.
PtCreateWidget(),
PtInit(),
PtMainLoop()
“Basic steps”
in the Programming Photon without PhAB chapter of the
Photon Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptappinit.html on line 123
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptappinit.html on line 123