===================================================== Liste_Funktionen_Beginn: DLL_run1 connect oder run oder unload DLL. DLL_run2 build & connect & run & unload DLL. DLL_build__ Compile, Link. Liste_Funktionen_Ende: ===================================================== See also: OS_dll__ OS_debug_dll_
#include <dlfcn.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_os.h"
#include "../xa/xa.h"
Functions | |
int | DLL_run1 (int mode, void *fdat) |
================================================================ | |
int | DLL_run2 (char *soNam, int ccFlg) |
=================================================================== | |
int | DLL_build__ (char *dllNam) |
=================================================================== | |
Variables | |
AP_STAT | AP_stat |
progress of Start | |
char | APP_act_nam [64] |
int DLL_run1 | ( | int | mode, | |
void * | fdat | |||
) |
================================================================
================================================================ DLL_run1 connect, run, unload DLL. starts ALWAYS function gCad_main in the dll !
mode 0 Load DLL; connect dll-Function "gCad_main" ObjGX[0] = Typ_ObjGX ObjGX[1] = (int)mode = 1 ObjGX[2] = (char*)filename of dll ObjGX[3] = (Typ_Memspc)Typ_Memspc mode 2 work; start Function "gCad_main" with parameterblock fdat mode 3 unLoad / free fdat=Memspc
int DLL_run2 | ( | char * | soNam, | |
int | ccFlg | |||
) |
===================================================================
=================================================================== activate & start DLL Input: soNam plugin; max 62 chars; including ".so" or ".dll" ccFlg = 0 load plugin, do not recompile 1 recompile and load plugin -1 unload plugin (DLL_run2("",-1);
int DLL_build__ | ( | char * | dllNam | ) |
===================================================================
=================================================================== wenn .mak vorh: compile/link
char APP_act_nam[64] |