private bool XLibraryLoad(string dllName, ref string errBuf) { string symName; int cl = 0; IntPtr pAddressOfFunctionToCall; if (isLoaded) return true; h = LoadLibrary(@dllName);; if (IntPtr.Zero == h) { errBuf = "Could not load shared library " + dllName; return false; } pAddressOfFunctionToCall = GetProcAddress(h, "xcreate"); if(pAddressOfFunctionToCall != IntPtr.Zero) xcreate = (xcreate_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xcreate_t)); else { symName = "xcreate"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "xfree"); if(pAddressOfFunctionToCall != IntPtr.Zero) xfree = (xfree_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xfree_t)); else { symName = "xfree"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "cxcheck"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_xcheck = (xcheck_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xcheck_t)); else { symName = "cxcheck"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "cxapiversion"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_xapiversion = (xapiversion_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xapiversion_t)); else { symName = "cxapiversion"; goto symMissing; } if (xapiversion(7,ref errBuf, ref cl) == 0) return false; pAddressOfFunctionToCall = GetProcAddress(h, "cgdxSetLoadPath"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSetLoadPath = (gdxSetLoadPath_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSetLoadPath_t)); pAddressOfFunctionToCall = GetProcAddress(h, "cgdxGetLoadPath"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxGetLoadPath = (gdxGetLoadPath_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxGetLoadPath_t)); {int[] s={3,11,11,3}; if (xcheck("gdxAcronymAdd",3,s,ref errBuf) == 0) dll_gdxAcronymAdd = d_gdxAcronymAdd; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxacronymadd"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymAdd = (gdxAcronymAdd_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymAdd_t)); else { symName = "cgdxAcronymAdd"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxAcronymCount",0,s,ref errBuf) == 0) dll_gdxAcronymCount = d_gdxAcronymCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxacronymcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymCount = (gdxAcronymCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymCount_t)); else { symName = "gdxAcronymCount"; goto symMissing; }}} {int[] s={3,3,12,12,4}; if (xcheck("gdxAcronymGetInfo",4,s,ref errBuf) == 0) dll_gdxAcronymGetInfo = d_gdxAcronymGetInfo; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxacronymgetinfo"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymGetInfo = (gdxAcronymGetInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymGetInfo_t)); else { symName = "cgdxAcronymGetInfo"; goto symMissing; }}} {int[] s={3,3,4,4,4}; if (xcheck("gdxAcronymGetMapping",4,s,ref errBuf) == 0) dll_gdxAcronymGetMapping = d_gdxAcronymGetMapping; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxacronymgetmapping"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymGetMapping = (gdxAcronymGetMapping_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymGetMapping_t)); else { symName = "gdxAcronymGetMapping"; goto symMissing; }}} {int[] s={3,13}; if (xcheck("gdxAcronymIndex",1,s,ref errBuf) == 0) dll_gdxAcronymIndex = d_gdxAcronymIndex; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxacronymindex"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymIndex = (gdxAcronymIndex_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymIndex_t)); else { symName = "gdxAcronymIndex"; goto symMissing; }}} {int[] s={3,13,12}; if (xcheck("gdxAcronymName",2,s,ref errBuf) == 0) dll_gdxAcronymName = d_gdxAcronymName; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxacronymname"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymName = (gdxAcronymName_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymName_t)); else { symName = "cgdxAcronymName"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("gdxAcronymNextNr",1,s,ref errBuf) == 0) dll_gdxAcronymNextNr = d_gdxAcronymNextNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxacronymnextnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymNextNr = (gdxAcronymNextNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymNextNr_t)); else { symName = "gdxAcronymNextNr"; goto symMissing; }}} {int[] s={3,3,11,11,3}; if (xcheck("gdxAcronymSetInfo",4,s,ref errBuf) == 0) dll_gdxAcronymSetInfo = d_gdxAcronymSetInfo; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxacronymsetinfo"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymSetInfo = (gdxAcronymSetInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymSetInfo_t)); else { symName = "cgdxAcronymSetInfo"; goto symMissing; }}} {int[] s={13,3}; if (xcheck("gdxAcronymValue",1,s,ref errBuf) == 0) dll_gdxAcronymValue = d_gdxAcronymValue; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxacronymvalue"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAcronymValue = (gdxAcronymValue_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAcronymValue_t)); else { symName = "gdxAcronymValue"; goto symMissing; }}} {int[] s={3,11,11}; if (xcheck("gdxAddAlias",2,s,ref errBuf) == 0) dll_gdxAddAlias = d_gdxAddAlias; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxaddalias"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAddAlias = (gdxAddAlias_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAddAlias_t)); else { symName = "cgdxAddAlias"; goto symMissing; }}} {int[] s={3,11,4}; if (xcheck("gdxAddSetText",2,s,ref errBuf) == 0) dll_gdxAddSetText = d_gdxAddSetText; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxaddsettext"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAddSetText = (gdxAddSetText_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAddSetText_t)); else { symName = "cgdxAddSetText"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("gdxAutoConvert",1,s,ref errBuf) == 0) dll_gdxAutoConvert = d_gdxAutoConvert; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxautoconvert"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxAutoConvert = (gdxAutoConvert_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxAutoConvert_t)); else { symName = "gdxAutoConvert"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxClose",0,s,ref errBuf) == 0) dll_gdxClose = d_gdxClose; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxclose"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxClose = (gdxClose_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxClose_t)); else { symName = "gdxClose"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxDataErrorCount",0,s,ref errBuf) == 0) dll_gdxDataErrorCount = d_gdxDataErrorCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdataerrorcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataErrorCount = (gdxDataErrorCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataErrorCount_t)); else { symName = "gdxDataErrorCount"; goto symMissing; }}} {int[] s={3,3,52,54}; if (xcheck("gdxDataErrorRecord",3,s,ref errBuf) == 0) dll_gdxDataErrorRecord = d_gdxDataErrorRecord; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdataerrorrecord"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataErrorRecord = (gdxDataErrorRecord_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataErrorRecord_t)); else { symName = "gdxDataErrorRecord"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxDataReadDone",0,s,ref errBuf) == 0) dll_gdxDataReadDone = d_gdxDataReadDone; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareaddone"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadDone = (gdxDataReadDone_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadDone_t)); else { symName = "gdxDataReadDone"; goto symMissing; }}} {int[] s={3,3,51,4}; if (xcheck("gdxDataReadFilteredStart",3,s,ref errBuf) == 0) dll_gdxDataReadFilteredStart = d_gdxDataReadFilteredStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareadfilteredstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadFilteredStart = (gdxDataReadFilteredStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadFilteredStart_t)); else { symName = "gdxDataReadFilteredStart"; goto symMissing; }}} {int[] s={3,3,52,54,4}; if (xcheck("gdxDataReadMap",4,s,ref errBuf) == 0) dll_gdxDataReadMap = d_gdxDataReadMap; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareadmap"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadMap = (gdxDataReadMap_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadMap_t)); else { symName = "gdxDataReadMap"; goto symMissing; }}} {int[] s={3,3,4}; if (xcheck("gdxDataReadMapStart",2,s,ref errBuf) == 0) dll_gdxDataReadMapStart = d_gdxDataReadMapStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareadmapstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadMapStart = (gdxDataReadMapStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadMapStart_t)); else { symName = "gdxDataReadMapStart"; goto symMissing; }}} {int[] s={3,52,54,4}; if (xcheck("gdxDataReadRaw",3,s,ref errBuf) == 0) dll_gdxDataReadRaw = d_gdxDataReadRaw; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareadraw"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadRaw = (gdxDataReadRaw_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadRaw_t)); else { symName = "gdxDataReadRaw"; goto symMissing; }}} {int[] s={3,3,59,4}; if (xcheck("gdxDataReadRawFast",3,s,ref errBuf) == 0) dll_gdxDataReadRawFast = d_gdxDataReadRawFast; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareadrawfast"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadRawFast = (gdxDataReadRawFast_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadRawFast_t)); else { symName = "gdxDataReadRawFast"; goto symMissing; }}} {int[] s={3,3,4}; if (xcheck("gdxDataReadRawStart",2,s,ref errBuf) == 0) dll_gdxDataReadRawStart = d_gdxDataReadRawStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareadrawstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadRawStart = (gdxDataReadRawStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadRawStart_t)); else { symName = "gdxDataReadRawStart"; goto symMissing; }}} {int[] s={3,55,4,59}; if (xcheck("gdxDataReadSlice",3,s,ref errBuf) == 0) dll_gdxDataReadSlice = d_gdxDataReadSlice; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxdatareadslice"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadSlice = (gdxDataReadSlice_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadSlice_t)); else { symName = "cgdxDataReadSlice"; goto symMissing; }}} {int[] s={3,3,52}; if (xcheck("gdxDataReadSliceStart",2,s,ref errBuf) == 0) dll_gdxDataReadSliceStart = d_gdxDataReadSliceStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareadslicestart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadSliceStart = (gdxDataReadSliceStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadSliceStart_t)); else { symName = "gdxDataReadSliceStart"; goto symMissing; }}} {int[] s={3,56,54,4}; if (xcheck("gdxDataReadStr",3,s,ref errBuf) == 0) dll_gdxDataReadStr = d_gdxDataReadStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "bgdxdatareadstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadStr = (gdxDataReadStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadStr_t)); else { symName = "bgdxDataReadStr"; goto symMissing; }}} {int[] s={3,3,4}; if (xcheck("gdxDataReadStrStart",2,s,ref errBuf) == 0) dll_gdxDataReadStrStart = d_gdxDataReadStrStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatareadstrstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataReadStrStart = (gdxDataReadStrStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataReadStrStart_t)); else { symName = "gdxDataReadStrStart"; goto symMissing; }}} {int[] s={3,51,56}; if (xcheck("gdxDataSliceUELS",2,s,ref errBuf) == 0) dll_gdxDataSliceUELS = d_gdxDataSliceUELS; else { pAddressOfFunctionToCall = GetProcAddress(h, "bgdxdatasliceuels"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataSliceUELS = (gdxDataSliceUELS_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataSliceUELS_t)); else { symName = "bgdxDataSliceUELS"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxDataWriteDone",0,s,ref errBuf) == 0) dll_gdxDataWriteDone = d_gdxDataWriteDone; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatawritedone"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataWriteDone = (gdxDataWriteDone_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataWriteDone_t)); else { symName = "gdxDataWriteDone"; goto symMissing; }}} {int[] s={3,51,53}; if (xcheck("gdxDataWriteMap",2,s,ref errBuf) == 0) dll_gdxDataWriteMap = d_gdxDataWriteMap; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatawritemap"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataWriteMap = (gdxDataWriteMap_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataWriteMap_t)); else { symName = "gdxDataWriteMap"; goto symMissing; }}} {int[] s={3,11,11,3,3,3}; if (xcheck("gdxDataWriteMapStart",5,s,ref errBuf) == 0) dll_gdxDataWriteMapStart = d_gdxDataWriteMapStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxdatawritemapstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataWriteMapStart = (gdxDataWriteMapStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataWriteMapStart_t)); else { symName = "cgdxDataWriteMapStart"; goto symMissing; }}} {int[] s={3,51,53}; if (xcheck("gdxDataWriteRaw",2,s,ref errBuf) == 0) dll_gdxDataWriteRaw = d_gdxDataWriteRaw; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxdatawriteraw"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataWriteRaw = (gdxDataWriteRaw_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataWriteRaw_t)); else { symName = "gdxDataWriteRaw"; goto symMissing; }}} {int[] s={3,11,11,3,3,3}; if (xcheck("gdxDataWriteRawStart",5,s,ref errBuf) == 0) dll_gdxDataWriteRawStart = d_gdxDataWriteRawStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxdatawriterawstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataWriteRawStart = (gdxDataWriteRawStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataWriteRawStart_t)); else { symName = "cgdxDataWriteRawStart"; goto symMissing; }}} {int[] s={3,55,53}; if (xcheck("gdxDataWriteStr",2,s,ref errBuf) == 0) dll_gdxDataWriteStr = d_gdxDataWriteStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxdatawritestr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataWriteStr = (gdxDataWriteStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataWriteStr_t)); else { symName = "cgdxDataWriteStr"; goto symMissing; }}} {int[] s={3,11,11,3,3,3}; if (xcheck("gdxDataWriteStrStart",5,s,ref errBuf) == 0) dll_gdxDataWriteStrStart = d_gdxDataWriteStrStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxdatawritestrstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxDataWriteStrStart = (gdxDataWriteStrStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxDataWriteStrStart_t)); else { symName = "cgdxDataWriteStrStart"; goto symMissing; }}} {int[] s={3,12}; if (xcheck("gdxGetDLLVersion",1,s,ref errBuf) == 0) dll_gdxGetDLLVersion = d_gdxGetDLLVersion; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxgetdllversion"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxGetDLLVersion = (gdxGetDLLVersion_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxGetDLLVersion_t)); else { symName = "cgdxGetDLLVersion"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxErrorCount",0,s,ref errBuf) == 0) dll_gdxErrorCount = d_gdxErrorCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxerrorcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxErrorCount = (gdxErrorCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxErrorCount_t)); else { symName = "gdxErrorCount"; goto symMissing; }}} {int[] s={3,3,12}; if (xcheck("gdxErrorStr",2,s,ref errBuf) == 0) dll_gdxErrorStr = d_gdxErrorStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxerrorstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxErrorStr = (gdxErrorStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxErrorStr_t)); else { symName = "cgdxErrorStr"; goto symMissing; }}} {int[] s={3,4,4}; if (xcheck("gdxFileInfo",2,s,ref errBuf) == 0) dll_gdxFileInfo = d_gdxFileInfo; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxfileinfo"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxFileInfo = (gdxFileInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxFileInfo_t)); else { symName = "gdxFileInfo"; goto symMissing; }}} {int[] s={3,12,12}; if (xcheck("gdxFileVersion",2,s,ref errBuf) == 0) dll_gdxFileVersion = d_gdxFileVersion; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxfileversion"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxFileVersion = (gdxFileVersion_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxFileVersion_t)); else { symName = "cgdxFileVersion"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("gdxFilterExists",1,s,ref errBuf) == 0) dll_gdxFilterExists = d_gdxFilterExists; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxfilterexists"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxFilterExists = (gdxFilterExists_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxFilterExists_t)); else { symName = "gdxFilterExists"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("gdxFilterRegister",1,s,ref errBuf) == 0) dll_gdxFilterRegister = d_gdxFilterRegister; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxfilterregister"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxFilterRegister = (gdxFilterRegister_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxFilterRegister_t)); else { symName = "gdxFilterRegister"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxFilterRegisterDone",0,s,ref errBuf) == 0) dll_gdxFilterRegisterDone = d_gdxFilterRegisterDone; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxfilterregisterdone"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxFilterRegisterDone = (gdxFilterRegisterDone_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxFilterRegisterDone_t)); else { symName = "gdxFilterRegisterDone"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("gdxFilterRegisterStart",1,s,ref errBuf) == 0) dll_gdxFilterRegisterStart = d_gdxFilterRegisterStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxfilterregisterstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxFilterRegisterStart = (gdxFilterRegisterStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxFilterRegisterStart_t)); else { symName = "gdxFilterRegisterStart"; goto symMissing; }}} {int[] s={3,11,4}; if (xcheck("gdxFindSymbol",2,s,ref errBuf) == 0) dll_gdxFindSymbol = d_gdxFindSymbol; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxfindsymbol"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxFindSymbol = (gdxFindSymbol_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxFindSymbol_t)); else { symName = "cgdxFindSymbol"; goto symMissing; }}} {int[] s={3,3,12,4}; if (xcheck("gdxGetElemText",3,s,ref errBuf) == 0) dll_gdxGetElemText = d_gdxGetElemText; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxgetelemtext"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxGetElemText = (gdxGetElemText_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxGetElemText_t)); else { symName = "cgdxGetElemText"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxGetLastError",0,s,ref errBuf) == 0) dll_gdxGetLastError = d_gdxGetLastError; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxgetlasterror"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxGetLastError = (gdxGetLastError_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxGetLastError_t)); else { symName = "gdxGetLastError"; goto symMissing; }}} {int[] s={23}; if (xcheck("gdxGetMemoryUsed",0,s,ref errBuf) == 0) dll_gdxGetMemoryUsed = d_gdxGetMemoryUsed; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxgetmemoryused"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxGetMemoryUsed = (gdxGetMemoryUsed_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxGetMemoryUsed_t)); else { symName = "gdxGetMemoryUsed"; goto symMissing; }}} {int[] s={3,58}; if (xcheck("gdxGetSpecialValues",1,s,ref errBuf) == 0) dll_gdxGetSpecialValues = d_gdxGetSpecialValues; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxgetspecialvalues"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxGetSpecialValues = (gdxGetSpecialValues_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxGetSpecialValues_t)); else { symName = "gdxGetSpecialValues"; goto symMissing; }}} {int[] s={3,3,12}; if (xcheck("gdxGetUEL",2,s,ref errBuf) == 0) dll_gdxGetUEL = d_gdxGetUEL; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxgetuel"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxGetUEL = (gdxGetUEL_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxGetUEL_t)); else { symName = "cgdxGetUEL"; goto symMissing; }}} {int[] s={3,13,4}; if (xcheck("gdxMapValue",2,s,ref errBuf) == 0) dll_gdxMapValue = d_gdxMapValue; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxmapvalue"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxMapValue = (gdxMapValue_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxMapValue_t)); else { symName = "gdxMapValue"; goto symMissing; }}} {int[] s={3,11,11,4}; if (xcheck("gdxOpenAppend",3,s,ref errBuf) == 0) dll_gdxOpenAppend = d_gdxOpenAppend; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxopenappend"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxOpenAppend = (gdxOpenAppend_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxOpenAppend_t)); else { symName = "cgdxOpenAppend"; goto symMissing; }}} {int[] s={3,11,4}; if (xcheck("gdxOpenRead",2,s,ref errBuf) == 0) dll_gdxOpenRead = d_gdxOpenRead; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxopenread"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxOpenRead = (gdxOpenRead_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxOpenRead_t)); else { symName = "cgdxOpenRead"; goto symMissing; }}} {int[] s={3,11,11,4}; if (xcheck("gdxOpenWrite",3,s,ref errBuf) == 0) dll_gdxOpenWrite = d_gdxOpenWrite; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxopenwrite"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxOpenWrite = (gdxOpenWrite_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxOpenWrite_t)); else { symName = "cgdxOpenWrite"; goto symMissing; }}} {int[] s={3,11,11,3,4}; if (xcheck("gdxOpenWriteEx",4,s,ref errBuf) == 0) dll_gdxOpenWriteEx = d_gdxOpenWriteEx; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxopenwriteex"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxOpenWriteEx = (gdxOpenWriteEx_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxOpenWriteEx_t)); else { symName = "cgdxOpenWriteEx"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxResetSpecialValues",0,s,ref errBuf) == 0) dll_gdxResetSpecialValues = d_gdxResetSpecialValues; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxresetspecialvalues"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxResetSpecialValues = (gdxResetSpecialValues_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxResetSpecialValues_t)); else { symName = "gdxResetSpecialValues"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("gdxSetHasText",1,s,ref errBuf) == 0) dll_gdxSetHasText = d_gdxSetHasText; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsethastext"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSetHasText = (gdxSetHasText_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSetHasText_t)); else { symName = "gdxSetHasText"; goto symMissing; }}} {int[] s={3,57}; if (xcheck("gdxSetReadSpecialValues",1,s,ref errBuf) == 0) dll_gdxSetReadSpecialValues = d_gdxSetReadSpecialValues; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsetreadspecialvalues"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSetReadSpecialValues = (gdxSetReadSpecialValues_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSetReadSpecialValues_t)); else { symName = "gdxSetReadSpecialValues"; goto symMissing; }}} {int[] s={3,57}; if (xcheck("gdxSetSpecialValues",1,s,ref errBuf) == 0) dll_gdxSetSpecialValues = d_gdxSetSpecialValues; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsetspecialvalues"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSetSpecialValues = (gdxSetSpecialValues_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSetSpecialValues_t)); else { symName = "gdxSetSpecialValues"; goto symMissing; }}} {int[] s={3,3,3}; if (xcheck("gdxSetTextNodeNr",2,s,ref errBuf) == 0) dll_gdxSetTextNodeNr = d_gdxSetTextNodeNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsettextnodenr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSetTextNodeNr = (gdxSetTextNodeNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSetTextNodeNr_t)); else { symName = "gdxSetTextNodeNr"; goto symMissing; }}} {int[] s={3,3,11}; if (xcheck("gdxSetTraceLevel",2,s,ref errBuf) == 0) dll_gdxSetTraceLevel = d_gdxSetTraceLevel; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxsettracelevel"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSetTraceLevel = (gdxSetTraceLevel_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSetTraceLevel_t)); else { symName = "cgdxSetTraceLevel"; goto symMissing; }}} {int[] s={3,3,52}; if (xcheck("gdxSymbIndxMaxLength",2,s,ref errBuf) == 0) dll_gdxSymbIndxMaxLength = d_gdxSymbIndxMaxLength; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsymbindxmaxlength"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbIndxMaxLength = (gdxSymbIndxMaxLength_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbIndxMaxLength_t)); else { symName = "gdxSymbIndxMaxLength"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxSymbMaxLength",0,s,ref errBuf) == 0) dll_gdxSymbMaxLength = d_gdxSymbMaxLength; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsymbmaxlength"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbMaxLength = (gdxSymbMaxLength_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbMaxLength_t)); else { symName = "gdxSymbMaxLength"; goto symMissing; }}} {int[] s={3,3,11}; if (xcheck("gdxSymbolAddComment",2,s,ref errBuf) == 0) dll_gdxSymbolAddComment = d_gdxSymbolAddComment; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxsymboladdcomment"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolAddComment = (gdxSymbolAddComment_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolAddComment_t)); else { symName = "cgdxSymbolAddComment"; goto symMissing; }}} {int[] s={3,3,3,12}; if (xcheck("gdxSymbolGetComment",3,s,ref errBuf) == 0) dll_gdxSymbolGetComment = d_gdxSymbolGetComment; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxsymbolgetcomment"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolGetComment = (gdxSymbolGetComment_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolGetComment_t)); else { symName = "cgdxSymbolGetComment"; goto symMissing; }}} {int[] s={3,3,52}; if (xcheck("gdxSymbolGetDomain",2,s,ref errBuf) == 0) dll_gdxSymbolGetDomain = d_gdxSymbolGetDomain; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsymbolgetdomain"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolGetDomain = (gdxSymbolGetDomain_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolGetDomain_t)); else { symName = "gdxSymbolGetDomain"; goto symMissing; }}} {int[] s={3,3,56}; if (xcheck("gdxSymbolGetDomainX",2,s,ref errBuf) == 0) dll_gdxSymbolGetDomainX = d_gdxSymbolGetDomainX; else { pAddressOfFunctionToCall = GetProcAddress(h, "bgdxsymbolgetdomainx"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolGetDomainX = (gdxSymbolGetDomainX_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolGetDomainX_t)); else { symName = "bgdxSymbolGetDomainX"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("gdxSymbolDim",1,s,ref errBuf) == 0) dll_gdxSymbolDim = d_gdxSymbolDim; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsymboldim"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolDim = (gdxSymbolDim_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolDim_t)); else { symName = "gdxSymbolDim"; goto symMissing; }}} {int[] s={3,3,12,4,4}; if (xcheck("gdxSymbolInfo",4,s,ref errBuf) == 0) dll_gdxSymbolInfo = d_gdxSymbolInfo; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxsymbolinfo"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolInfo = (gdxSymbolInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolInfo_t)); else { symName = "cgdxSymbolInfo"; goto symMissing; }}} {int[] s={3,3,4,4,12}; if (xcheck("gdxSymbolInfoX",4,s,ref errBuf) == 0) dll_gdxSymbolInfoX = d_gdxSymbolInfoX; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxsymbolinfox"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolInfoX = (gdxSymbolInfoX_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolInfoX_t)); else { symName = "cgdxSymbolInfoX"; goto symMissing; }}} {int[] s={3,55}; if (xcheck("gdxSymbolSetDomain",1,s,ref errBuf) == 0) dll_gdxSymbolSetDomain = d_gdxSymbolSetDomain; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxsymbolsetdomain"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolSetDomain = (gdxSymbolSetDomain_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolSetDomain_t)); else { symName = "cgdxSymbolSetDomain"; goto symMissing; }}} {int[] s={3,3,55}; if (xcheck("gdxSymbolSetDomainX",2,s,ref errBuf) == 0) dll_gdxSymbolSetDomainX = d_gdxSymbolSetDomainX; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxsymbolsetdomainx"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSymbolSetDomainX = (gdxSymbolSetDomainX_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSymbolSetDomainX_t)); else { symName = "cgdxSymbolSetDomainX"; goto symMissing; }}} {int[] s={3,4,4}; if (xcheck("gdxSystemInfo",2,s,ref errBuf) == 0) dll_gdxSystemInfo = d_gdxSystemInfo; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxsysteminfo"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxSystemInfo = (gdxSystemInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxSystemInfo_t)); else { symName = "gdxSystemInfo"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxUELMaxLength",0,s,ref errBuf) == 0) dll_gdxUELMaxLength = d_gdxUELMaxLength; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxuelmaxlength"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUELMaxLength = (gdxUELMaxLength_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUELMaxLength_t)); else { symName = "gdxUELMaxLength"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxUELRegisterDone",0,s,ref errBuf) == 0) dll_gdxUELRegisterDone = d_gdxUELRegisterDone; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxuelregisterdone"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUELRegisterDone = (gdxUELRegisterDone_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUELRegisterDone_t)); else { symName = "gdxUELRegisterDone"; goto symMissing; }}} {int[] s={3,3,11}; if (xcheck("gdxUELRegisterMap",2,s,ref errBuf) == 0) dll_gdxUELRegisterMap = d_gdxUELRegisterMap; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxuelregistermap"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUELRegisterMap = (gdxUELRegisterMap_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUELRegisterMap_t)); else { symName = "cgdxUELRegisterMap"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxUELRegisterMapStart",0,s,ref errBuf) == 0) dll_gdxUELRegisterMapStart = d_gdxUELRegisterMapStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxuelregistermapstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUELRegisterMapStart = (gdxUELRegisterMapStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUELRegisterMapStart_t)); else { symName = "gdxUELRegisterMapStart"; goto symMissing; }}} {int[] s={3,11}; if (xcheck("gdxUELRegisterRaw",1,s,ref errBuf) == 0) dll_gdxUELRegisterRaw = d_gdxUELRegisterRaw; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxuelregisterraw"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUELRegisterRaw = (gdxUELRegisterRaw_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUELRegisterRaw_t)); else { symName = "cgdxUELRegisterRaw"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxUELRegisterRawStart",0,s,ref errBuf) == 0) dll_gdxUELRegisterRawStart = d_gdxUELRegisterRawStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxuelregisterrawstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUELRegisterRawStart = (gdxUELRegisterRawStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUELRegisterRawStart_t)); else { symName = "gdxUELRegisterRawStart"; goto symMissing; }}} {int[] s={3,11,4}; if (xcheck("gdxUELRegisterStr",2,s,ref errBuf) == 0) dll_gdxUELRegisterStr = d_gdxUELRegisterStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxuelregisterstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUELRegisterStr = (gdxUELRegisterStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUELRegisterStr_t)); else { symName = "cgdxUELRegisterStr"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxUELRegisterStrStart",0,s,ref errBuf) == 0) dll_gdxUELRegisterStrStart = d_gdxUELRegisterStrStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxuelregisterstrstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUELRegisterStrStart = (gdxUELRegisterStrStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUELRegisterStrStart_t)); else { symName = "gdxUELRegisterStrStart"; goto symMissing; }}} {int[] s={3,11,4,4}; if (xcheck("gdxUMFindUEL",3,s,ref errBuf) == 0) dll_gdxUMFindUEL = d_gdxUMFindUEL; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxumfinduel"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUMFindUEL = (gdxUMFindUEL_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUMFindUEL_t)); else { symName = "cgdxUMFindUEL"; goto symMissing; }}} {int[] s={3,3,12,4}; if (xcheck("gdxUMUelGet",3,s,ref errBuf) == 0) dll_gdxUMUelGet = d_gdxUMUelGet; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgdxumuelget"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUMUelGet = (gdxUMUelGet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUMUelGet_t)); else { symName = "cgdxUMUelGet"; goto symMissing; }}} {int[] s={3,4,4}; if (xcheck("gdxUMUelInfo",2,s,ref errBuf) == 0) dll_gdxUMUelInfo = d_gdxUMUelInfo; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxumuelinfo"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxUMUelInfo = (gdxUMUelInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxUMUelInfo_t)); else { symName = "gdxUMUelInfo"; goto symMissing; }}} {int[] s={3}; if (xcheck("gdxCurrentDim",0,s,ref errBuf) == 0) dll_gdxCurrentDim = d_gdxCurrentDim; else { pAddressOfFunctionToCall = GetProcAddress(h, "gdxcurrentdim"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gdxCurrentDim = (gdxCurrentDim_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gdxCurrentDim_t)); else { symName = "gdxCurrentDim"; goto symMissing; }}} return true; symMissing: errBuf = "Could not load symbol '" + symName + "'"; return false; }
private bool XLibraryLoad(string dllName, ref string errBuf) { string symName; int cl = 0; IntPtr pAddressOfFunctionToCall; if (isLoaded) return true; h = LoadLibrary(@dllName);; if (IntPtr.Zero == h) { errBuf = "Could not load shared library " + dllName; return false; } pAddressOfFunctionToCall = GetProcAddress(h, "xcreate"); if(pAddressOfFunctionToCall != IntPtr.Zero) xcreate = (xcreate_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xcreate_t)); else { symName = "xcreate"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "xfree"); if(pAddressOfFunctionToCall != IntPtr.Zero) xfree = (xfree_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xfree_t)); else { symName = "xfree"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "cxcheck"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_xcheck = (xcheck_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xcheck_t)); else { symName = "cxcheck"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "cxapiversion"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_xapiversion = (xapiversion_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xapiversion_t)); else { symName = "cxapiversion"; goto symMissing; } if (xapiversion(1,ref errBuf, ref cl) == 0) return false; {int[] s={3,1,11,3,12}; if (xcheck("gamsxRunExecDLL",4,s,ref errBuf) == 0) dll_gamsxRunExecDLL = d_gamsxRunExecDLL; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxrunexecdll"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxRunExecDLL = (gamsxRunExecDLL_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRunExecDLL_t)); else { symName = "cgamsxRunExecDLL"; goto symMissing; }}} {int[] s={15,11,12,12,12}; if (xcheck("gamsxShowError",4,s,ref errBuf) == 0) dll_gamsxShowError = d_gamsxShowError; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxshowerror"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxShowError = (gamsxShowError_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxShowError_t)); else { symName = "cgamsxShowError"; goto symMissing; }}} {int[] s={0,11,3}; if (xcheck("gamsxAddBreakPoint",2,s,ref errBuf) == 0) dll_gamsxAddBreakPoint = d_gamsxAddBreakPoint; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxaddbreakpoint"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxAddBreakPoint = (gamsxAddBreakPoint_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxAddBreakPoint_t)); else { symName = "cgamsxAddBreakPoint"; goto symMissing; }}} {int[] s={0}; if (xcheck("gamsxClearBreakPoints",0,s,ref errBuf) == 0) dll_gamsxClearBreakPoints = d_gamsxClearBreakPoints; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxclearbreakpoints"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxClearBreakPoints = (gamsxClearBreakPoints_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxClearBreakPoints_t)); else { symName = "gamsxClearBreakPoints"; goto symMissing; }}} {int[] s={3,21,21}; if (xcheck("gamsxSystemInfo",2,s,ref errBuf) == 0) dll_gamsxSystemInfo = d_gamsxSystemInfo; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxsysteminfo"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxSystemInfo = (gamsxSystemInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxSystemInfo_t)); else { symName = "gamsxSystemInfo"; goto symMissing; }}} {int[] s={3,3,12,12,21,21,21,21}; if (xcheck("gamsxSymbolInfo",7,s,ref errBuf) == 0) dll_gamsxSymbolInfo = d_gamsxSymbolInfo; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxsymbolinfo"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxSymbolInfo = (gamsxSymbolInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxSymbolInfo_t)); else { symName = "cgamsxSymbolInfo"; goto symMissing; }}} {int[] s={12,3}; if (xcheck("gamsxUelName",1,s,ref errBuf) == 0) dll_gamsxUelName = d_gamsxUelName; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxuelname"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxUelName = (gamsxUelName_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxUelName_t)); else { symName = "cgamsxUelName"; goto symMissing; }}} {int[] s={3,11}; if (xcheck("gamsxFindSymbol",1,s,ref errBuf) == 0) dll_gamsxFindSymbol = d_gamsxFindSymbol; else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxfindsymbol"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxFindSymbol = (gamsxFindSymbol_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxFindSymbol_t)); else { symName = "cgamsxFindSymbol"; goto symMissing; }}} {int[] s={3,3,21}; if (xcheck("gamsxDataReadRawStart",2,s,ref errBuf) == 0) dll_gamsxDataReadRawStart = d_gamsxDataReadRawStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatareadrawstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxDataReadRawStart = (gamsxDataReadRawStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataReadRawStart_t)); else { symName = "gamsxDataReadRawStart"; goto symMissing; }}} {int[] s={3,52,54,21}; if (xcheck("gamsxDataReadRaw",3,s,ref errBuf) == 0) dll_gamsxDataReadRaw = d_gamsxDataReadRaw; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatareadraw"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxDataReadRaw = (gamsxDataReadRaw_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataReadRaw_t)); else { symName = "gamsxDataReadRaw"; goto symMissing; }}} {int[] s={3}; if (xcheck("gamsxDataReadDone",0,s,ref errBuf) == 0) dll_gamsxDataReadDone = d_gamsxDataReadDone; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatareaddone"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxDataReadDone = (gamsxDataReadDone_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataReadDone_t)); else { symName = "gamsxDataReadDone"; goto symMissing; }}} {int[] s={3,3,15}; if (xcheck("gamsxDataWriteRawStart",2,s,ref errBuf) == 0) dll_gamsxDataWriteRawStart = d_gamsxDataWriteRawStart; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatawriterawstart"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxDataWriteRawStart = (gamsxDataWriteRawStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataWriteRawStart_t)); else { symName = "gamsxDataWriteRawStart"; goto symMissing; }}} {int[] s={3,51,53}; if (xcheck("gamsxDataWriteRaw",2,s,ref errBuf) == 0) dll_gamsxDataWriteRaw = d_gamsxDataWriteRaw; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatawriteraw"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxDataWriteRaw = (gamsxDataWriteRaw_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataWriteRaw_t)); else { symName = "gamsxDataWriteRaw"; goto symMissing; }}} {int[] s={3}; if (xcheck("gamsxDataWriteDone",0,s,ref errBuf) == 0) dll_gamsxDataWriteDone = d_gamsxDataWriteDone; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatawritedone"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxDataWriteDone = (gamsxDataWriteDone_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataWriteDone_t)); else { symName = "gamsxDataWriteDone"; goto symMissing; }}} {int[] s={0,59,1}; if (xcheck("gamsxRegisterCB1",2,s,ref errBuf) == 0) dll_gamsxRegisterCB1 = d_gamsxRegisterCB1; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxregistercb1"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxRegisterCB1 = (gamsxRegisterCB1_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRegisterCB1_t)); else { symName = "gamsxRegisterCB1"; goto symMissing; }}} {int[] s={0,59,1,1}; if (xcheck("gamsxRegisterCB2",3,s,ref errBuf) == 0) dll_gamsxRegisterCB2 = d_gamsxRegisterCB2; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxregistercb2"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxRegisterCB2 = (gamsxRegisterCB2_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRegisterCB2_t)); else { symName = "gamsxRegisterCB2"; goto symMissing; }}} {int[] s={59}; if (xcheck("gamsxGetCB1",0,s,ref errBuf) == 0) dll_gamsxGetCB1 = d_gamsxGetCB1; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb1"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxGetCB1 = (gamsxGetCB1_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB1_t)); else { symName = "gamsxGetCB1"; goto symMissing; }}} {int[] s={59}; if (xcheck("gamsxGetCB2",0,s,ref errBuf) == 0) dll_gamsxGetCB2 = d_gamsxGetCB2; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb2"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxGetCB2 = (gamsxGetCB2_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB2_t)); else { symName = "gamsxGetCB2"; goto symMissing; }}} {int[] s={1}; if (xcheck("gamsxGetCB1UM",0,s,ref errBuf) == 0) dll_gamsxGetCB1UM = d_gamsxGetCB1UM; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb1um"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxGetCB1UM = (gamsxGetCB1UM_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB1UM_t)); else { symName = "gamsxGetCB1UM"; goto symMissing; }}} {int[] s={1}; if (xcheck("gamsxGetCB2UM1",0,s,ref errBuf) == 0) dll_gamsxGetCB2UM1 = d_gamsxGetCB2UM1; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb2um1"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxGetCB2UM1 = (gamsxGetCB2UM1_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB2UM1_t)); else { symName = "gamsxGetCB2UM1"; goto symMissing; }}} {int[] s={1}; if (xcheck("gamsxGetCB2UM2",0,s,ref errBuf) == 0) dll_gamsxGetCB2UM2 = d_gamsxGetCB2UM2; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb2um2"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxGetCB2UM2 = (gamsxGetCB2UM2_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB2UM2_t)); else { symName = "gamsxGetCB2UM2"; goto symMissing; }}} {int[] s={0,3}; if (xcheck("gamsxSWSet",1,s,ref errBuf) == 0) dll_gamsxSWSet = d_gamsxSWSet; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxswset"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxSWSet = (gamsxSWSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxSWSet_t)); else { symName = "gamsxSWSet"; goto symMissing; }}} {int[] s={15}; if (xcheck("gamsxStepThrough",0,s,ref errBuf) == 0) dll_gamsxStepThrough = d_gamsxStepThrough; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxstepthrough"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxStepThrough = (gamsxStepThrough_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxStepThrough_t)); else { symName = "gamsxStepThrough"; goto symMissing; }}} {int[] s={0,15}; if (xcheck("gamsxStepThroughSet",1,s,ref errBuf) == 0) dll_gamsxStepThroughSet = d_gamsxStepThroughSet; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxstepthroughset"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxStepThroughSet = (gamsxStepThroughSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxStepThroughSet_t)); else { symName = "gamsxStepThroughSet"; goto symMissing; }}} {int[] s={15}; if (xcheck("gamsxRunToEnd",0,s,ref errBuf) == 0) dll_gamsxRunToEnd = d_gamsxRunToEnd; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxruntoend"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxRunToEnd = (gamsxRunToEnd_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRunToEnd_t)); else { symName = "gamsxRunToEnd"; goto symMissing; }}} {int[] s={0,15}; if (xcheck("gamsxRunToEndSet",1,s,ref errBuf) == 0) dll_gamsxRunToEndSet = d_gamsxRunToEndSet; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxruntoendset"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxRunToEndSet = (gamsxRunToEndSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRunToEndSet_t)); else { symName = "gamsxRunToEndSet"; goto symMissing; }}} {int[] s={15}; if (xcheck("gamsxCB1Defined",0,s,ref errBuf) == 0) dll_gamsxCB1Defined = d_gamsxCB1Defined; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxcb1defined"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxCB1Defined = (gamsxCB1Defined_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxCB1Defined_t)); else { symName = "gamsxCB1Defined"; goto symMissing; }}} {int[] s={15}; if (xcheck("gamsxCB2Defined",0,s,ref errBuf) == 0) dll_gamsxCB2Defined = d_gamsxCB2Defined; else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxcb2defined"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_gamsxCB2Defined = (gamsxCB2Defined_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxCB2Defined_t)); else { symName = "gamsxCB2Defined"; goto symMissing; }}} return true; symMissing: errBuf = "Could not load symbol '" + symName + "'"; return false; }
private bool XLibraryLoad(string dllName, ref string errBuf) { string symName; int cl = 0; IntPtr pAddressOfFunctionToCall; if (isLoaded) return true; h = LoadLibrary(@dllName);; if (IntPtr.Zero == h) { errBuf = "Could not load shared library " + dllName; return false; } pAddressOfFunctionToCall = GetProcAddress(h, "xcreate"); if(pAddressOfFunctionToCall != IntPtr.Zero) xcreate = (xcreate_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xcreate_t)); else { symName = "xcreate"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "xfree"); if(pAddressOfFunctionToCall != IntPtr.Zero) xfree = (xfree_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xfree_t)); else { symName = "xfree"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "cxcheck"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_xcheck = (xcheck_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xcheck_t)); else { symName = "cxcheck"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "cxapiversion"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_xapiversion = (xapiversion_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xapiversion_t)); else { symName = "cxapiversion"; goto symMissing; } if (xapiversion(2,ref errBuf, ref cl) == 0) return false; pAddressOfFunctionToCall = GetProcAddress(h, "coptSetLoadPath"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetLoadPath = (optSetLoadPath_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetLoadPath_t)); pAddressOfFunctionToCall = GetProcAddress(h, "coptGetLoadPath"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetLoadPath = (optGetLoadPath_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetLoadPath_t)); {int[] s={3,11}; if (xcheck("optReadDefinition",1,s,ref errBuf) == 0) dll_optReadDefinition = d_optReadDefinition; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptreaddefinition"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optReadDefinition = (optReadDefinition_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optReadDefinition_t)); else { symName = "coptReadDefinition"; goto symMissing; }}} {int[] s={3,11}; if (xcheck("optReadParameterFile",1,s,ref errBuf) == 0) dll_optReadParameterFile = d_optReadParameterFile; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptreadparameterfile"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optReadParameterFile = (optReadParameterFile_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optReadParameterFile_t)); else { symName = "coptReadParameterFile"; goto symMissing; }}} {int[] s={0,11}; if (xcheck("optReadFromStr",1,s,ref errBuf) == 0) dll_optReadFromStr = d_optReadFromStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptreadfromstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optReadFromStr = (optReadFromStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optReadFromStr_t)); else { symName = "coptReadFromStr"; goto symMissing; }}} {int[] s={3,11}; if (xcheck("optWriteParameterFile",1,s,ref errBuf) == 0) dll_optWriteParameterFile = d_optWriteParameterFile; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptwriteparameterfile"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optWriteParameterFile = (optWriteParameterFile_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optWriteParameterFile_t)); else { symName = "coptWriteParameterFile"; goto symMissing; }}} {int[] s={0}; if (xcheck("optClearMessages",0,s,ref errBuf) == 0) dll_optClearMessages = d_optClearMessages; else { pAddressOfFunctionToCall = GetProcAddress(h, "optclearmessages"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optClearMessages = (optClearMessages_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optClearMessages_t)); else { symName = "optClearMessages"; goto symMissing; }}} {int[] s={0,11}; if (xcheck("optAddMessage",1,s,ref errBuf) == 0) dll_optAddMessage = d_optAddMessage; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptaddmessage"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optAddMessage = (optAddMessage_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optAddMessage_t)); else { symName = "coptAddMessage"; goto symMissing; }}} {int[] s={0,3,12,4}; if (xcheck("optGetMessage",3,s,ref errBuf) == 0) dll_optGetMessage = d_optGetMessage; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetmessage"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetMessage = (optGetMessage_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetMessage_t)); else { symName = "coptGetMessage"; goto symMissing; }}} {int[] s={0}; if (xcheck("optResetAll",0,s,ref errBuf) == 0) dll_optResetAll = d_optResetAll; else { pAddressOfFunctionToCall = GetProcAddress(h, "optresetall"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optResetAll = (optResetAll_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optResetAll_t)); else { symName = "optResetAll"; goto symMissing; }}} {int[] s={0}; if (xcheck("optResetAllRecent",0,s,ref errBuf) == 0) dll_optResetAllRecent = d_optResetAllRecent; else { pAddressOfFunctionToCall = GetProcAddress(h, "optresetallrecent"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optResetAllRecent = (optResetAllRecent_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optResetAllRecent_t)); else { symName = "optResetAllRecent"; goto symMissing; }}} {int[] s={0}; if (xcheck("optResetRecentChanges",0,s,ref errBuf) == 0) dll_optResetRecentChanges = d_optResetRecentChanges; else { pAddressOfFunctionToCall = GetProcAddress(h, "optresetrecentchanges"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optResetRecentChanges = (optResetRecentChanges_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optResetRecentChanges_t)); else { symName = "optResetRecentChanges"; goto symMissing; }}} {int[] s={0,11}; if (xcheck("optShowHelp",1,s,ref errBuf) == 0) dll_optShowHelp = d_optShowHelp; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptshowhelp"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optShowHelp = (optShowHelp_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optShowHelp_t)); else { symName = "coptShowHelp"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("optResetNr",1,s,ref errBuf) == 0) dll_optResetNr = d_optResetNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optresetnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optResetNr = (optResetNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optResetNr_t)); else { symName = "optResetNr"; goto symMissing; }}} {int[] s={3,11,4,4}; if (xcheck("optFindStr",3,s,ref errBuf) == 0) dll_optFindStr = d_optFindStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptfindstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optFindStr = (optFindStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optFindStr_t)); else { symName = "coptFindStr"; goto symMissing; }}} {int[] s={3,3,4,4,4,4,4,4}; if (xcheck("optGetInfoNr",7,s,ref errBuf) == 0) dll_optGetInfoNr = d_optGetInfoNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetinfonr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetInfoNr = (optGetInfoNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetInfoNr_t)); else { symName = "optGetInfoNr"; goto symMissing; }}} {int[] s={3,3,12,4,14,12}; if (xcheck("optGetValuesNr",5,s,ref errBuf) == 0) dll_optGetValuesNr = d_optGetValuesNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetvaluesnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetValuesNr = (optGetValuesNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetValuesNr_t)); else { symName = "coptGetValuesNr"; goto symMissing; }}} {int[] s={3,3,3,13,11}; if (xcheck("optSetValuesNr",4,s,ref errBuf) == 0) dll_optSetValuesNr = d_optSetValuesNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptsetvaluesnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetValuesNr = (optSetValuesNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetValuesNr_t)); else { symName = "coptSetValuesNr"; goto symMissing; }}} {int[] s={3,3,3,13,11}; if (xcheck("optSetValues2Nr",4,s,ref errBuf) == 0) dll_optSetValues2Nr = d_optSetValues2Nr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptsetvalues2nr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetValues2Nr = (optSetValues2Nr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetValues2Nr_t)); else { symName = "coptSetValues2Nr"; goto symMissing; }}} {int[] s={0,12}; if (xcheck("optVersion",1,s,ref errBuf) == 0) dll_optVersion = d_optVersion; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptversion"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optVersion = (optVersion_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optVersion_t)); else { symName = "coptVersion"; goto symMissing; }}} {int[] s={0,12}; if (xcheck("optDefinitionFile",1,s,ref errBuf) == 0) dll_optDefinitionFile = d_optDefinitionFile; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptdefinitionfile"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optDefinitionFile = (optDefinitionFile_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optDefinitionFile_t)); else { symName = "coptDefinitionFile"; goto symMissing; }}} {int[] s={3,3,12,12}; if (xcheck("optGetFromAnyStrList",3,s,ref errBuf) == 0) dll_optGetFromAnyStrList = d_optGetFromAnyStrList; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetfromanystrlist"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetFromAnyStrList = (optGetFromAnyStrList_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetFromAnyStrList_t)); else { symName = "coptGetFromAnyStrList"; goto symMissing; }}} {int[] s={3,11,12}; if (xcheck("optGetFromListStr",2,s,ref errBuf) == 0) dll_optGetFromListStr = d_optGetFromListStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetfromliststr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetFromListStr = (optGetFromListStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetFromListStr_t)); else { symName = "coptGetFromListStr"; goto symMissing; }}} {int[] s={3,11}; if (xcheck("optListCountStr",1,s,ref errBuf) == 0) dll_optListCountStr = d_optListCountStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptlistcountstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optListCountStr = (optListCountStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optListCountStr_t)); else { symName = "coptListCountStr"; goto symMissing; }}} {int[] s={3,11,3,12}; if (xcheck("optReadFromListStr",3,s,ref errBuf) == 0) dll_optReadFromListStr = d_optReadFromListStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptreadfromliststr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optReadFromListStr = (optReadFromListStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optReadFromListStr_t)); else { symName = "coptReadFromListStr"; goto symMissing; }}} {int[] s={3}; if (xcheck("optSynonymCount",0,s,ref errBuf) == 0) dll_optSynonymCount = d_optSynonymCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "optsynonymcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSynonymCount = (optSynonymCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSynonymCount_t)); else { symName = "optSynonymCount"; goto symMissing; }}} {int[] s={3,3,12,12}; if (xcheck("optGetSynonym",3,s,ref errBuf) == 0) dll_optGetSynonym = d_optGetSynonym; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetsynonym"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetSynonym = (optGetSynonym_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetSynonym_t)); else { symName = "coptGetSynonym"; goto symMissing; }}} {int[] s={0,3}; if (xcheck("optEchoSet",1,s,ref errBuf) == 0) dll_optEchoSet = d_optEchoSet; else { pAddressOfFunctionToCall = GetProcAddress(h, "optechoset"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optEchoSet = (optEchoSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optEchoSet_t)); else { symName = "optEchoSet"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("optEOLOnlySet",1,s,ref errBuf) == 0) dll_optEOLOnlySet = d_optEOLOnlySet; else { pAddressOfFunctionToCall = GetProcAddress(h, "opteolonlyset"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optEOLOnlySet = (optEOLOnlySet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optEOLOnlySet_t)); else { symName = "optEOLOnlySet"; goto symMissing; }}} {int[] s={0,3}; if (xcheck("optNoBoundsSet",1,s,ref errBuf) == 0) dll_optNoBoundsSet = d_optNoBoundsSet; else { pAddressOfFunctionToCall = GetProcAddress(h, "optnoboundsset"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optNoBoundsSet = (optNoBoundsSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optNoBoundsSet_t)); else { symName = "optNoBoundsSet"; goto symMissing; }}} {int[] s={0,4,4}; if (xcheck("optErrorCount",2,s,ref errBuf) == 0) dll_optErrorCount = d_optErrorCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "opterrorcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optErrorCount = (optErrorCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optErrorCount_t)); else { symName = "optErrorCount"; goto symMissing; }}} {int[] s={3,3,4,4,4}; if (xcheck("optGetBoundsInt",4,s,ref errBuf) == 0) dll_optGetBoundsInt = d_optGetBoundsInt; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetboundsint"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetBoundsInt = (optGetBoundsInt_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetBoundsInt_t)); else { symName = "optGetBoundsInt"; goto symMissing; }}} {int[] s={3,3,14,14,14}; if (xcheck("optGetBoundsDbl",4,s,ref errBuf) == 0) dll_optGetBoundsDbl = d_optGetBoundsDbl; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetboundsdbl"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetBoundsDbl = (optGetBoundsDbl_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetBoundsDbl_t)); else { symName = "optGetBoundsDbl"; goto symMissing; }}} {int[] s={3,3,12}; if (xcheck("optGetDefaultStr",2,s,ref errBuf) == 0) dll_optGetDefaultStr = d_optGetDefaultStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetdefaultstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetDefaultStr = (optGetDefaultStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetDefaultStr_t)); else { symName = "coptGetDefaultStr"; goto symMissing; }}} {int[] s={3,3,4}; if (xcheck("optGetIntNr",2,s,ref errBuf) == 0) dll_optGetIntNr = d_optGetIntNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetintnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetIntNr = (optGetIntNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetIntNr_t)); else { symName = "optGetIntNr"; goto symMissing; }}} {int[] s={3,3,4}; if (xcheck("optGetInt2Nr",2,s,ref errBuf) == 0) dll_optGetInt2Nr = d_optGetInt2Nr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetint2nr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetInt2Nr = (optGetInt2Nr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetInt2Nr_t)); else { symName = "optGetInt2Nr"; goto symMissing; }}} {int[] s={3,3,3}; if (xcheck("optSetIntNr",2,s,ref errBuf) == 0) dll_optSetIntNr = d_optSetIntNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optsetintnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetIntNr = (optSetIntNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetIntNr_t)); else { symName = "optSetIntNr"; goto symMissing; }}} {int[] s={3,3,3}; if (xcheck("optSetInt2Nr",2,s,ref errBuf) == 0) dll_optSetInt2Nr = d_optSetInt2Nr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optsetint2nr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetInt2Nr = (optSetInt2Nr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetInt2Nr_t)); else { symName = "optSetInt2Nr"; goto symMissing; }}} {int[] s={3,3,12}; if (xcheck("optGetStrNr",2,s,ref errBuf) == 0) dll_optGetStrNr = d_optGetStrNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetstrnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetStrNr = (optGetStrNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetStrNr_t)); else { symName = "coptGetStrNr"; goto symMissing; }}} {int[] s={3,3,12,4,4}; if (xcheck("optGetOptHelpNr",4,s,ref errBuf) == 0) dll_optGetOptHelpNr = d_optGetOptHelpNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetopthelpnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetOptHelpNr = (optGetOptHelpNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetOptHelpNr_t)); else { symName = "coptGetOptHelpNr"; goto symMissing; }}} {int[] s={3,3,3,4,12}; if (xcheck("optGetEnumHelp",4,s,ref errBuf) == 0) dll_optGetEnumHelp = d_optGetEnumHelp; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetenumhelp"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetEnumHelp = (optGetEnumHelp_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetEnumHelp_t)); else { symName = "coptGetEnumHelp"; goto symMissing; }}} {int[] s={3,3,12,4}; if (xcheck("optGetEnumStrNr",3,s,ref errBuf) == 0) dll_optGetEnumStrNr = d_optGetEnumStrNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetenumstrnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetEnumStrNr = (optGetEnumStrNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetEnumStrNr_t)); else { symName = "coptGetEnumStrNr"; goto symMissing; }}} {int[] s={3,3,4}; if (xcheck("optGetEnumCount",2,s,ref errBuf) == 0) dll_optGetEnumCount = d_optGetEnumCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetenumcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetEnumCount = (optGetEnumCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetEnumCount_t)); else { symName = "optGetEnumCount"; goto symMissing; }}} {int[] s={3,3,3,4,12}; if (xcheck("optGetEnumValue",4,s,ref errBuf) == 0) dll_optGetEnumValue = d_optGetEnumValue; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetenumvalue"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetEnumValue = (optGetEnumValue_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetEnumValue_t)); else { symName = "coptGetEnumValue"; goto symMissing; }}} {int[] s={3,3,12}; if (xcheck("optGetStr2Nr",2,s,ref errBuf) == 0) dll_optGetStr2Nr = d_optGetStr2Nr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetstr2nr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetStr2Nr = (optGetStr2Nr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetStr2Nr_t)); else { symName = "coptGetStr2Nr"; goto symMissing; }}} {int[] s={3,3,11}; if (xcheck("optSetStrNr",2,s,ref errBuf) == 0) dll_optSetStrNr = d_optSetStrNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptsetstrnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetStrNr = (optSetStrNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetStrNr_t)); else { symName = "coptSetStrNr"; goto symMissing; }}} {int[] s={3,3,11}; if (xcheck("optSetStr2Nr",2,s,ref errBuf) == 0) dll_optSetStr2Nr = d_optSetStr2Nr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptsetstr2nr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetStr2Nr = (optSetStr2Nr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetStr2Nr_t)); else { symName = "coptSetStr2Nr"; goto symMissing; }}} {int[] s={3,3,14}; if (xcheck("optGetDblNr",2,s,ref errBuf) == 0) dll_optGetDblNr = d_optGetDblNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetdblnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetDblNr = (optGetDblNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetDblNr_t)); else { symName = "optGetDblNr"; goto symMissing; }}} {int[] s={3,3,14}; if (xcheck("optGetDbl2Nr",2,s,ref errBuf) == 0) dll_optGetDbl2Nr = d_optGetDbl2Nr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetdbl2nr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetDbl2Nr = (optGetDbl2Nr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetDbl2Nr_t)); else { symName = "optGetDbl2Nr"; goto symMissing; }}} {int[] s={3,3,13}; if (xcheck("optSetDblNr",2,s,ref errBuf) == 0) dll_optSetDblNr = d_optSetDblNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optsetdblnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetDblNr = (optSetDblNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetDblNr_t)); else { symName = "optSetDblNr"; goto symMissing; }}} {int[] s={3,3,13}; if (xcheck("optSetDbl2Nr",2,s,ref errBuf) == 0) dll_optSetDbl2Nr = d_optSetDbl2Nr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optsetdbl2nr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetDbl2Nr = (optSetDbl2Nr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetDbl2Nr_t)); else { symName = "optSetDbl2Nr"; goto symMissing; }}} {int[] s={3,11,12}; if (xcheck("optGetValStr",2,s,ref errBuf) == 0) dll_optGetValStr = d_optGetValStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetvalstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetValStr = (optGetValStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetValStr_t)); else { symName = "coptGetValStr"; goto symMissing; }}} {int[] s={3,11,12}; if (xcheck("optGetVal2Str",2,s,ref errBuf) == 0) dll_optGetVal2Str = d_optGetVal2Str; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetval2str"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetVal2Str = (optGetVal2Str_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetVal2Str_t)); else { symName = "coptGetVal2Str"; goto symMissing; }}} {int[] s={3,3,12}; if (xcheck("optGetNameNr",2,s,ref errBuf) == 0) dll_optGetNameNr = d_optGetNameNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetnamenr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetNameNr = (optGetNameNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetNameNr_t)); else { symName = "coptGetNameNr"; goto symMissing; }}} {int[] s={3,3,4}; if (xcheck("optGetDefinedNr",2,s,ref errBuf) == 0) dll_optGetDefinedNr = d_optGetDefinedNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetdefinednr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetDefinedNr = (optGetDefinedNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetDefinedNr_t)); else { symName = "optGetDefinedNr"; goto symMissing; }}} {int[] s={3,3,12,12}; if (xcheck("optGetHelpNr",3,s,ref errBuf) == 0) dll_optGetHelpNr = d_optGetHelpNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgethelpnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetHelpNr = (optGetHelpNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetHelpNr_t)); else { symName = "coptGetHelpNr"; goto symMissing; }}} {int[] s={3,3,12,4,4,12}; if (xcheck("optGetGroupNr",5,s,ref errBuf) == 0) dll_optGetGroupNr = d_optGetGroupNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetgroupnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetGroupNr = (optGetGroupNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetGroupNr_t)); else { symName = "coptGetGroupNr"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("optGetGroupGrpNr",1,s,ref errBuf) == 0) dll_optGetGroupGrpNr = d_optGetGroupGrpNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetgroupgrpnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetGroupGrpNr = (optGetGroupGrpNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetGroupGrpNr_t)); else { symName = "optGetGroupGrpNr"; goto symMissing; }}} {int[] s={3,3}; if (xcheck("optGetOptGroupNr",1,s,ref errBuf) == 0) dll_optGetOptGroupNr = d_optGetOptGroupNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgetoptgroupnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetOptGroupNr = (optGetOptGroupNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetOptGroupNr_t)); else { symName = "optGetOptGroupNr"; goto symMissing; }}} {int[] s={3,3,12,4,4,14}; if (xcheck("optGetDotOptNr",5,s,ref errBuf) == 0) dll_optGetDotOptNr = d_optGetDotOptNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetdotoptnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetDotOptNr = (optGetDotOptNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetDotOptNr_t)); else { symName = "coptGetDotOptNr"; goto symMissing; }}} {int[] s={3,3,3,12}; if (xcheck("optGetDotOptUel",3,s,ref errBuf) == 0) dll_optGetDotOptUel = d_optGetDotOptUel; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetdotoptuel"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetDotOptUel = (optGetDotOptUel_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetDotOptUel_t)); else { symName = "coptGetDotOptUel"; goto symMissing; }}} {int[] s={3,3,3,12,12,4,4,4}; if (xcheck("optGetVarEquMapNr",7,s,ref errBuf) == 0) dll_optGetVarEquMapNr = d_optGetVarEquMapNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetvarequmapnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetVarEquMapNr = (optGetVarEquMapNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetVarEquMapNr_t)); else { symName = "coptGetVarEquMapNr"; goto symMissing; }}} {int[] s={3,3,3,3,12}; if (xcheck("optGetEquVarEquMapNr",4,s,ref errBuf) == 0) dll_optGetEquVarEquMapNr = d_optGetEquVarEquMapNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetequvarequmapnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetEquVarEquMapNr = (optGetEquVarEquMapNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetEquVarEquMapNr_t)); else { symName = "coptGetEquVarEquMapNr"; goto symMissing; }}} {int[] s={3,3,3,3,12}; if (xcheck("optGetVarVarEquMapNr",4,s,ref errBuf) == 0) dll_optGetVarVarEquMapNr = d_optGetVarVarEquMapNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetvarvarequmapnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetVarVarEquMapNr = (optGetVarVarEquMapNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetVarVarEquMapNr_t)); else { symName = "coptGetVarVarEquMapNr"; goto symMissing; }}} {int[] s={3,3,4}; if (xcheck("optVarEquMapCount",2,s,ref errBuf) == 0) dll_optVarEquMapCount = d_optVarEquMapCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "optvarequmapcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optVarEquMapCount = (optVarEquMapCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optVarEquMapCount_t)); else { symName = "optVarEquMapCount"; goto symMissing; }}} {int[] s={3,3,12,12,4,4,4}; if (xcheck("optGetIndicatorNr",6,s,ref errBuf) == 0) dll_optGetIndicatorNr = d_optGetIndicatorNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetindicatornr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetIndicatorNr = (optGetIndicatorNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetIndicatorNr_t)); else { symName = "coptGetIndicatorNr"; goto symMissing; }}} {int[] s={3,3,3,12}; if (xcheck("optGetEquIndicatorNr",3,s,ref errBuf) == 0) dll_optGetEquIndicatorNr = d_optGetEquIndicatorNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetequindicatornr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetEquIndicatorNr = (optGetEquIndicatorNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetEquIndicatorNr_t)); else { symName = "coptGetEquIndicatorNr"; goto symMissing; }}} {int[] s={3,3,3,12}; if (xcheck("optGetVarIndicatorNr",3,s,ref errBuf) == 0) dll_optGetVarIndicatorNr = d_optGetVarIndicatorNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetvarindicatornr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetVarIndicatorNr = (optGetVarIndicatorNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetVarIndicatorNr_t)); else { symName = "coptGetVarIndicatorNr"; goto symMissing; }}} {int[] s={3,4}; if (xcheck("optIndicatorCount",1,s,ref errBuf) == 0) dll_optIndicatorCount = d_optIndicatorCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "optindicatorcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optIndicatorCount = (optIndicatorCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optIndicatorCount_t)); else { symName = "optIndicatorCount"; goto symMissing; }}} {int[] s={3,4}; if (xcheck("optDotOptCount",1,s,ref errBuf) == 0) dll_optDotOptCount = d_optDotOptCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "optdotoptcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optDotOptCount = (optDotOptCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optDotOptCount_t)); else { symName = "optDotOptCount"; goto symMissing; }}} {int[] s={3,3,3}; if (xcheck("optSetRefNr",2,s,ref errBuf) == 0) dll_optSetRefNr = d_optSetRefNr; else { pAddressOfFunctionToCall = GetProcAddress(h, "optsetrefnr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetRefNr = (optSetRefNr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetRefNr_t)); else { symName = "optSetRefNr"; goto symMissing; }}} {int[] s={3,11,3}; if (xcheck("optSetRefNrStr",2,s,ref errBuf) == 0) dll_optSetRefNrStr = d_optSetRefNrStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptsetrefnrstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetRefNrStr = (optSetRefNrStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetRefNrStr_t)); else { symName = "coptSetRefNrStr"; goto symMissing; }}} {int[] s={3,3,3,12}; if (xcheck("optGetConstName",3,s,ref errBuf) == 0) dll_optGetConstName = d_optGetConstName; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetconstname"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetConstName = (optGetConstName_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetConstName_t)); else { symName = "coptGetConstName"; goto symMissing; }}} {int[] s={3,3,12}; if (xcheck("optGetTypeName",2,s,ref errBuf) == 0) dll_optGetTypeName = d_optGetTypeName; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgettypename"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetTypeName = (optGetTypeName_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetTypeName_t)); else { symName = "coptGetTypeName"; goto symMissing; }}} {int[] s={3,11}; if (xcheck("optLookUp",1,s,ref errBuf) == 0) dll_optLookUp = d_optLookUp; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptlookup"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optLookUp = (optLookUp_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optLookUp_t)); else { symName = "coptLookUp"; goto symMissing; }}} {int[] s={0,10}; if (xcheck("optReadFromPChar",1,s,ref errBuf) == 0) dll_optReadFromPChar = d_optReadFromPChar; else { pAddressOfFunctionToCall = GetProcAddress(h, "optreadfrompchar"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optReadFromPChar = (optReadFromPChar_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optReadFromPChar_t)); else { symName = "optReadFromPChar"; goto symMissing; }}} {int[] s={3,11,12,4}; if (xcheck("optGetNameOpt",3,s,ref errBuf) == 0) dll_optGetNameOpt = d_optGetNameOpt; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetnameopt"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetNameOpt = (optGetNameOpt_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetNameOpt_t)); else { symName = "coptGetNameOpt"; goto symMissing; }}} {int[] s={15,11}; if (xcheck("optGetDefinedStr",1,s,ref errBuf) == 0) dll_optGetDefinedStr = d_optGetDefinedStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetdefinedstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetDefinedStr = (optGetDefinedStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetDefinedStr_t)); else { symName = "coptGetDefinedStr"; goto symMissing; }}} {int[] s={3,11}; if (xcheck("optGetIntStr",1,s,ref errBuf) == 0) dll_optGetIntStr = d_optGetIntStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetintstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetIntStr = (optGetIntStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetIntStr_t)); else { symName = "coptGetIntStr"; goto symMissing; }}} {int[] s={13,11}; if (xcheck("optGetDblStr",1,s,ref errBuf) == 0) dll_optGetDblStr = d_optGetDblStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetdblstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetDblStr = (optGetDblStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetDblStr_t)); else { symName = "coptGetDblStr"; goto symMissing; }}} {int[] s={12,11}; if (xcheck("optGetStrStr",1,s,ref errBuf) == 0) dll_optGetStrStr = d_optGetStrStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptgetstrstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGetStrStr = (optGetStrStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGetStrStr_t)); else { symName = "coptGetStrStr"; goto symMissing; }}} {int[] s={0,11,3}; if (xcheck("optSetIntStr",2,s,ref errBuf) == 0) dll_optSetIntStr = d_optSetIntStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptsetintstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetIntStr = (optSetIntStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetIntStr_t)); else { symName = "coptSetIntStr"; goto symMissing; }}} {int[] s={0,11,13}; if (xcheck("optSetDblStr",2,s,ref errBuf) == 0) dll_optSetDblStr = d_optSetDblStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptsetdblstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetDblStr = (optSetDblStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetDblStr_t)); else { symName = "coptSetDblStr"; goto symMissing; }}} {int[] s={0,11,11}; if (xcheck("optSetStrStr",2,s,ref errBuf) == 0) dll_optSetStrStr = d_optSetStrStr; else { pAddressOfFunctionToCall = GetProcAddress(h, "coptsetstrstr"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optSetStrStr = (optSetStrStr_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optSetStrStr_t)); else { symName = "coptSetStrStr"; goto symMissing; }}} {int[] s={3}; if (xcheck("optCount",0,s,ref errBuf) == 0) dll_optCount = d_optCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "optcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optCount = (optCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optCount_t)); else { symName = "optCount"; goto symMissing; }}} {int[] s={3}; if (xcheck("optMessageCount",0,s,ref errBuf) == 0) dll_optMessageCount = d_optMessageCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "optmessagecount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optMessageCount = (optMessageCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optMessageCount_t)); else { symName = "optMessageCount"; goto symMissing; }}} {int[] s={3}; if (xcheck("optGroupCount",0,s,ref errBuf) == 0) dll_optGroupCount = d_optGroupCount; else { pAddressOfFunctionToCall = GetProcAddress(h, "optgroupcount"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optGroupCount = (optGroupCount_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optGroupCount_t)); else { symName = "optGroupCount"; goto symMissing; }}} {int[] s={3}; if (xcheck("optRecentEnabled",0,s,ref errBuf) == 0) dll_optRecentEnabled = d_optRecentEnabled; else { pAddressOfFunctionToCall = GetProcAddress(h, "optrecentenabled"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optRecentEnabled = (optRecentEnabled_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optRecentEnabled_t)); else { symName = "optRecentEnabled"; goto symMissing; }}} {int[] s={0,3}; if (xcheck("optRecentEnabledSet",1,s,ref errBuf) == 0) dll_optRecentEnabledSet = d_optRecentEnabledSet; else { pAddressOfFunctionToCall = GetProcAddress(h, "optrecentenabledset"); if(pAddressOfFunctionToCall != IntPtr.Zero) dll_optRecentEnabledSet = (optRecentEnabledSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(optRecentEnabledSet_t)); else { symName = "optRecentEnabledSet"; goto symMissing; }}} return true; symMissing: errBuf = "Could not load symbol '" + symName + "'"; return false; }
private bool XLibraryLoad(string dllName, ref string errBuf) { string symName; int cl = 0; IntPtr pAddressOfFunctionToCall; if (isLoaded) { return(true); } h = LoadLibrary(@dllName);; if (IntPtr.Zero == h) { errBuf = "Could not load shared library " + dllName; return(false); } pAddressOfFunctionToCall = GetProcAddress(h, "xcreate"); if (pAddressOfFunctionToCall != IntPtr.Zero) { xcreate = (xcreate_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xcreate_t)); } else { symName = "xcreate"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "xfree"); if (pAddressOfFunctionToCall != IntPtr.Zero) { xfree = (xfree_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xfree_t)); } else { symName = "xfree"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "cxcheck"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_xcheck = (xcheck_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xcheck_t)); } else { symName = "cxcheck"; goto symMissing; } pAddressOfFunctionToCall = GetProcAddress(h, "cxapiversion"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_xapiversion = (xapiversion_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(xapiversion_t)); } else { symName = "cxapiversion"; goto symMissing; } if (xapiversion(1, ref errBuf, ref cl) == 0) { return(false); } { int[] s = { 3, 1, 11, 3, 12 }; if (xcheck("gamsxRunExecDLL", 4, s, ref errBuf) == 0) { dll_gamsxRunExecDLL = d_gamsxRunExecDLL; } else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxrunexecdll"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxRunExecDLL = (gamsxRunExecDLL_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRunExecDLL_t)); } else { symName = "cgamsxRunExecDLL"; goto symMissing; } } } { int[] s = { 15, 11, 12, 12, 12 }; if (xcheck("gamsxShowError", 4, s, ref errBuf) == 0) { dll_gamsxShowError = d_gamsxShowError; } else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxshowerror"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxShowError = (gamsxShowError_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxShowError_t)); } else { symName = "cgamsxShowError"; goto symMissing; } } } { int[] s = { 0, 11, 3 }; if (xcheck("gamsxAddBreakPoint", 2, s, ref errBuf) == 0) { dll_gamsxAddBreakPoint = d_gamsxAddBreakPoint; } else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxaddbreakpoint"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxAddBreakPoint = (gamsxAddBreakPoint_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxAddBreakPoint_t)); } else { symName = "cgamsxAddBreakPoint"; goto symMissing; } } } { int[] s = { 0 }; if (xcheck("gamsxClearBreakPoints", 0, s, ref errBuf) == 0) { dll_gamsxClearBreakPoints = d_gamsxClearBreakPoints; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxclearbreakpoints"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxClearBreakPoints = (gamsxClearBreakPoints_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxClearBreakPoints_t)); } else { symName = "gamsxClearBreakPoints"; goto symMissing; } } } { int[] s = { 3, 21, 21 }; if (xcheck("gamsxSystemInfo", 2, s, ref errBuf) == 0) { dll_gamsxSystemInfo = d_gamsxSystemInfo; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxsysteminfo"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxSystemInfo = (gamsxSystemInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxSystemInfo_t)); } else { symName = "gamsxSystemInfo"; goto symMissing; } } } { int[] s = { 3, 3, 12, 12, 21, 21, 21, 21 }; if (xcheck("gamsxSymbolInfo", 7, s, ref errBuf) == 0) { dll_gamsxSymbolInfo = d_gamsxSymbolInfo; } else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxsymbolinfo"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxSymbolInfo = (gamsxSymbolInfo_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxSymbolInfo_t)); } else { symName = "cgamsxSymbolInfo"; goto symMissing; } } } { int[] s = { 12, 3 }; if (xcheck("gamsxUelName", 1, s, ref errBuf) == 0) { dll_gamsxUelName = d_gamsxUelName; } else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxuelname"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxUelName = (gamsxUelName_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxUelName_t)); } else { symName = "cgamsxUelName"; goto symMissing; } } } { int[] s = { 3, 11 }; if (xcheck("gamsxFindSymbol", 1, s, ref errBuf) == 0) { dll_gamsxFindSymbol = d_gamsxFindSymbol; } else { pAddressOfFunctionToCall = GetProcAddress(h, "cgamsxfindsymbol"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxFindSymbol = (gamsxFindSymbol_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxFindSymbol_t)); } else { symName = "cgamsxFindSymbol"; goto symMissing; } } } { int[] s = { 3, 3, 21 }; if (xcheck("gamsxDataReadRawStart", 2, s, ref errBuf) == 0) { dll_gamsxDataReadRawStart = d_gamsxDataReadRawStart; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatareadrawstart"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxDataReadRawStart = (gamsxDataReadRawStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataReadRawStart_t)); } else { symName = "gamsxDataReadRawStart"; goto symMissing; } } } { int[] s = { 3, 52, 54, 21 }; if (xcheck("gamsxDataReadRaw", 3, s, ref errBuf) == 0) { dll_gamsxDataReadRaw = d_gamsxDataReadRaw; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatareadraw"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxDataReadRaw = (gamsxDataReadRaw_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataReadRaw_t)); } else { symName = "gamsxDataReadRaw"; goto symMissing; } } } { int[] s = { 3 }; if (xcheck("gamsxDataReadDone", 0, s, ref errBuf) == 0) { dll_gamsxDataReadDone = d_gamsxDataReadDone; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatareaddone"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxDataReadDone = (gamsxDataReadDone_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataReadDone_t)); } else { symName = "gamsxDataReadDone"; goto symMissing; } } } { int[] s = { 3, 3, 15 }; if (xcheck("gamsxDataWriteRawStart", 2, s, ref errBuf) == 0) { dll_gamsxDataWriteRawStart = d_gamsxDataWriteRawStart; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatawriterawstart"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxDataWriteRawStart = (gamsxDataWriteRawStart_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataWriteRawStart_t)); } else { symName = "gamsxDataWriteRawStart"; goto symMissing; } } } { int[] s = { 3, 51, 53 }; if (xcheck("gamsxDataWriteRaw", 2, s, ref errBuf) == 0) { dll_gamsxDataWriteRaw = d_gamsxDataWriteRaw; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatawriteraw"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxDataWriteRaw = (gamsxDataWriteRaw_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataWriteRaw_t)); } else { symName = "gamsxDataWriteRaw"; goto symMissing; } } } { int[] s = { 3 }; if (xcheck("gamsxDataWriteDone", 0, s, ref errBuf) == 0) { dll_gamsxDataWriteDone = d_gamsxDataWriteDone; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxdatawritedone"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxDataWriteDone = (gamsxDataWriteDone_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxDataWriteDone_t)); } else { symName = "gamsxDataWriteDone"; goto symMissing; } } } { int[] s = { 0, 59, 1 }; if (xcheck("gamsxRegisterCB1", 2, s, ref errBuf) == 0) { dll_gamsxRegisterCB1 = d_gamsxRegisterCB1; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxregistercb1"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxRegisterCB1 = (gamsxRegisterCB1_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRegisterCB1_t)); } else { symName = "gamsxRegisterCB1"; goto symMissing; } } } { int[] s = { 0, 59, 1, 1 }; if (xcheck("gamsxRegisterCB2", 3, s, ref errBuf) == 0) { dll_gamsxRegisterCB2 = d_gamsxRegisterCB2; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxregistercb2"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxRegisterCB2 = (gamsxRegisterCB2_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRegisterCB2_t)); } else { symName = "gamsxRegisterCB2"; goto symMissing; } } } { int[] s = { 59 }; if (xcheck("gamsxGetCB1", 0, s, ref errBuf) == 0) { dll_gamsxGetCB1 = d_gamsxGetCB1; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb1"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxGetCB1 = (gamsxGetCB1_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB1_t)); } else { symName = "gamsxGetCB1"; goto symMissing; } } } { int[] s = { 59 }; if (xcheck("gamsxGetCB2", 0, s, ref errBuf) == 0) { dll_gamsxGetCB2 = d_gamsxGetCB2; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb2"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxGetCB2 = (gamsxGetCB2_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB2_t)); } else { symName = "gamsxGetCB2"; goto symMissing; } } } { int[] s = { 1 }; if (xcheck("gamsxGetCB1UM", 0, s, ref errBuf) == 0) { dll_gamsxGetCB1UM = d_gamsxGetCB1UM; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb1um"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxGetCB1UM = (gamsxGetCB1UM_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB1UM_t)); } else { symName = "gamsxGetCB1UM"; goto symMissing; } } } { int[] s = { 1 }; if (xcheck("gamsxGetCB2UM1", 0, s, ref errBuf) == 0) { dll_gamsxGetCB2UM1 = d_gamsxGetCB2UM1; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb2um1"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxGetCB2UM1 = (gamsxGetCB2UM1_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB2UM1_t)); } else { symName = "gamsxGetCB2UM1"; goto symMissing; } } } { int[] s = { 1 }; if (xcheck("gamsxGetCB2UM2", 0, s, ref errBuf) == 0) { dll_gamsxGetCB2UM2 = d_gamsxGetCB2UM2; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxgetcb2um2"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxGetCB2UM2 = (gamsxGetCB2UM2_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxGetCB2UM2_t)); } else { symName = "gamsxGetCB2UM2"; goto symMissing; } } } { int[] s = { 0, 3 }; if (xcheck("gamsxSWSet", 1, s, ref errBuf) == 0) { dll_gamsxSWSet = d_gamsxSWSet; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxswset"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxSWSet = (gamsxSWSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxSWSet_t)); } else { symName = "gamsxSWSet"; goto symMissing; } } } { int[] s = { 15 }; if (xcheck("gamsxStepThrough", 0, s, ref errBuf) == 0) { dll_gamsxStepThrough = d_gamsxStepThrough; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxstepthrough"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxStepThrough = (gamsxStepThrough_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxStepThrough_t)); } else { symName = "gamsxStepThrough"; goto symMissing; } } } { int[] s = { 0, 15 }; if (xcheck("gamsxStepThroughSet", 1, s, ref errBuf) == 0) { dll_gamsxStepThroughSet = d_gamsxStepThroughSet; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxstepthroughset"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxStepThroughSet = (gamsxStepThroughSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxStepThroughSet_t)); } else { symName = "gamsxStepThroughSet"; goto symMissing; } } } { int[] s = { 15 }; if (xcheck("gamsxRunToEnd", 0, s, ref errBuf) == 0) { dll_gamsxRunToEnd = d_gamsxRunToEnd; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxruntoend"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxRunToEnd = (gamsxRunToEnd_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRunToEnd_t)); } else { symName = "gamsxRunToEnd"; goto symMissing; } } } { int[] s = { 0, 15 }; if (xcheck("gamsxRunToEndSet", 1, s, ref errBuf) == 0) { dll_gamsxRunToEndSet = d_gamsxRunToEndSet; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxruntoendset"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxRunToEndSet = (gamsxRunToEndSet_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxRunToEndSet_t)); } else { symName = "gamsxRunToEndSet"; goto symMissing; } } } { int[] s = { 15 }; if (xcheck("gamsxCB1Defined", 0, s, ref errBuf) == 0) { dll_gamsxCB1Defined = d_gamsxCB1Defined; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxcb1defined"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxCB1Defined = (gamsxCB1Defined_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxCB1Defined_t)); } else { symName = "gamsxCB1Defined"; goto symMissing; } } } { int[] s = { 15 }; if (xcheck("gamsxCB2Defined", 0, s, ref errBuf) == 0) { dll_gamsxCB2Defined = d_gamsxCB2Defined; } else { pAddressOfFunctionToCall = GetProcAddress(h, "gamsxcb2defined"); if (pAddressOfFunctionToCall != IntPtr.Zero) { dll_gamsxCB2Defined = (gamsxCB2Defined_t)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(gamsxCB2Defined_t)); } else { symName = "gamsxCB2Defined"; goto symMissing; } } } return(true); symMissing: errBuf = "Could not load symbol '" + symName + "'"; return(false); } /* XLibraryLoad */