Gentee Programming Language > Documentation > Launch Download documentation

sgeinit

This structure’s pointer is transferred at initialization gentee.dll.
 
type sgeinit {
      uint   size
      uint   flags
      messagefunc   message
      printfunc   print
      exportfunc   export
      pstempdata   temp
}

Fields

sizeSgeinit structure size.
flagsAdditional flags.
GEF_NOSYSOUTDon’t show service messages.
GEF_CONSOLEconnection of dll is performed from a console application.
GEF_VMAll tasks perform on one virtual machine. If this flag isn’t selected, each call ge_load will create its own virtual machine.
messageA function of messagefunc type for handling of compiler’s messages and program run module. If “0,” then the default function is used.
printA function for outputting messages’ texts. You can view all compiler messages or program’s functioning results in any preferable mode.

void (CALLBACK* printfunc)( char* )

If the field equals “0,” the a default output mode is used.

exportA function for exporting functions from your program. Specify this field, if you want to call functions of your application from Gentee programs.

pvoid (CALLBACK* exportfunc)( char* ))

The parameter contains the name of the function, and you should return a pointer for that function. In a Gentee program, you should describe these functions with the help of the import command. At that, use empty string as a dll file.

import ""
{
   ...
}

tempThe pointer to the temporary directory information. It can be 0. See also stempdata

See also

    Gentee API functions     ge_init    messagefunc


 Copyright © 2004-2006 Gentee Inc. All rights reserved.