Home Client functions ldg_libpath() Utility functions

Example of client program

/*
 *  Using the functions of EX_LIB.H
 *      For GemLib user : gem.h should be included before
 *                                        ldg.h
 */

#include <gem.h>
#include <ldg.h>
#include <ldg\ex_lib.h>

LDG *ex_lib;    /* LDG descriptor of EX_LIB.LDG */

int main( void) {
   int end = 0;

   appl_init ();

   /* Load the library and get the functions */

   ex_lib = ldg_open ( "ex_lib.ldg", ldg_global);
   if( !ex_lib) {
      form_alert ( 1, "[1][Error with ex_lib.ldg!][OK]");
      appl_exit();
      return 0;
   }
   init_ex_lib( ex_lib);

   while( !end) {
      evnt_mesag( msg);
   }

   /* Fin de la lib et du programme */
   ldg_close( ex_ldg, ldg_global);
   appl_exit();
}

/* END OF FILE */

Copyright © (c) 1997 - 2004 all right reserved.
Last updated on April 25, 2005

Home Client functions ldg_libpath() Utility functions