Beispiel eines Funktionsaufrufs in C++-Syntax |
/************************************************************************/ /* Beispiel eines GeoDLL-Funktionsaufrufs in C++ */ /* */ /* Autor: Killet GeoSoftware Ing.-GbR */ /* */ /* Im Aufrufverzeichnis des Programms müssen die Dateien geodll32.dll */ /* und geodllbn.bin vorhanden sein. */ /************************************************************************/
if ((hInstance =::LoadLibrary("Geodll32.dll")) != NULL) if ((pTrans = (long int (_stdcall *) (double,double,short int, short int,short int,double *,double *,short int,short int,short int, short int))::GetProcAddress(hInstance,"coordtrans3")) != NULL) if (pTrans != NULL) l = pTrans(2540000.0,5650000.0,2,1,0,&nKoordXZ,&nKoordYZ,1,1,1,0); else LastError = GetLastError(); else LastError = GetLastError();
|