GradisPC_Init

Top  Previous  Next

Initialize of the GradisPC.

This function is one of the first called function if the system is begun. Settings which are needed to the expiry are carried out. E.G., the Workfile is put on. The data bank is initialized. Necessary DLLs are loaded etc.

Parametre

workfile (char *) [IN]

Name of the Workfiles to be loaded. Contains workfile the value ZERO the Workfile "workfile" is put on normally"". If the Workfile could not be generated, a suitable error message appears.

hInstance (HINSTANCE) [IN]

hInstance brags which was begun wievielte authority of this programme. This parametre is necessary only on the graphic issue. If Moskito is begun in the Batch mode, receives hInstance inside the value 1.

ausgabeTyp (int) [IN]

With the Flag ausgabeTyp it is given whether the system should be begun as a Batch job (without graphic issue) or as a system with graphic issue.

transactions (int) [IN]

With transactions can be steered whether the Undo/Redo functionality is available. Contains transaction the value TRUE all changes are taped, with FALSE not.

Result

(GLOBALS *) [IN]

As a return value a pointer on the structure GLOBALS is delivered. The structure contains a pointer on the Workfile and whether the system is in the Batch mode or in the graphic issue. In the mistake case becomes ZERO zurückgeliefert.

Declaration

#include".\source\system\sys_init.h"

 

GLOBALS * DLLENTRY GradisPC_Init (

char * workfile,

HINSTANCE hInstance,

int typ,

int transactions

);

Constants

AUSGABE_BATCH 1

AUSGABE_SIGMA 2

AUSGABE_WINDOW 3

AUSGABE_GINA 4

Related functions

GradisPC_Exit