gCAD3D 2.35
xa_dll.c File Reference

DLL-UtilityProgs. More...

#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/func_types.h"
#include "../ut/ut_os.h"
#include "../xa/xa.h"

Functions

int DLL_run1 (int mode, void *fdat)
 ================================================================ More...
 
int DLL_run2 (char *soNam, int ccFlg)
 =================================================================== More...
 
int DLL_build__ (char *dllNam)
 =================================================================== More...
 

Detailed Description

DLL-UtilityProgs.

=====================================================
List_functions_start:
DLL_run1 connect oder run oder unload DLL.
DLL_run2 build & connect & run & unload DLL.
DLL_build__ Compile, Link.
List_functions_end:
=====================================================
See also:

Function Documentation

int DLL_run1 ( int  mode,
void *  fdat 
)

================================================================

================================================================ DLL_run1 connect | run gCad_main(), gCad_fini() | unload DLL. starts ALWAYS function gCad_main in the dll ! TODO: use DLL_run2

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 gcad-plugin (gCad_main, gCad_fini only) TODO: use OS_dll__ Input: soNam plugin; max 62 chars; including ".so" or ".dll" ccFlg = 1 load plugin, do not recompile 0 recompile and load plugin -1 unload plugin (DLL_run2("",-1);

int DLL_build__ ( char *  dllNam)

===================================================================

=================================================================== wenn .mak vorh: compile/link