protected override bool InitFunctions() { d_ST_Init = (D_ST_Init)dllWrapper.GetFunctionAddress( dllWrapper.hModule, "ST_Init", typeof(D_ST_Init)); d_ST_GetOneObjectResult = (D_ST_GetOneObjectResult)dllWrapper.GetFunctionAddress( dllWrapper.hModule, "ST_GetOneObjectResult", typeof(D_ST_GetOneObjectResult)); d_ST_GetMultiObjectResult = (D_ST_GetMultiObjectResult)dllWrapper.GetFunctionAddress( dllWrapper.hModule, "ST_GetMultiObjectResult", typeof(D_ST_GetMultiObjectResult)); d_ST_GetLastErrMsg = (D_ST_GetLastErrMsg)dllWrapper.GetFunctionAddress( dllWrapper.hModule, "ST_GetLastErrMsg", typeof(D_ST_GetLastErrMsg)); d_ST_Exit = (D_ST_Exit)dllWrapper.GetFunctionAddress( dllWrapper.hModule, "ST_Exit", typeof(D_ST_Exit)); d_ST_ImportUserDict = (D_ST_ImportUserDict)dllWrapper.GetFunctionAddress( dllWrapper.hModule, "ST_ImportUserDict", typeof(D_ST_ImportUserDict)); d_ST_GetSentencePoint = (D_ST_GetSentencePoint)dllWrapper.GetFunctionAddress( dllWrapper.hModule, "ST_GetSentencePoint", typeof(D_ST_GetSentencePoint)); // d_ST_SentiDictIO = (D_ST_SentiDictIO)dllWrapper.GetFunctionAddress( // dllWrapper.hModule, "ST_SentiDictIO", typeof(D_ST_SentiDictIO)); if (d_ST_Init == null || d_ST_GetOneObjectResult == null || d_ST_GetMultiObjectResult == null || d_ST_GetLastErrMsg == null || d_ST_Exit == null) { return false; } return true; }
protected override bool InitFunctions() { d_ST_Init = (D_ST_Init)DllWrapper.GetFunctionAddress( DllWrapper.hModule, "ST_Init", typeof(D_ST_Init)); d_ST_GetOneObjectResult = (D_ST_GetOneObjectResult)DllWrapper.GetFunctionAddress( DllWrapper.hModule, "ST_GetOneObjectResult", typeof(D_ST_GetOneObjectResult)); d_ST_GetMultiObjectResult = (D_ST_GetMultiObjectResult)DllWrapper.GetFunctionAddress( DllWrapper.hModule, "ST_GetMultiObjectResult", typeof(D_ST_GetMultiObjectResult)); d_ST_GetLastErrMsg = (D_ST_GetLastErrMsg)DllWrapper.GetFunctionAddress( DllWrapper.hModule, "ST_GetLastErrMsg", typeof(D_ST_GetLastErrMsg)); d_ST_Exit = (D_ST_Exit)DllWrapper.GetFunctionAddress( DllWrapper.hModule, "ST_Exit", typeof(D_ST_Exit)); d_ST_SentiDictIO = (D_ST_SentiDictIO)DllWrapper.GetFunctionAddress( DllWrapper.hModule, "ST_SentiDictIO", typeof(D_ST_SentiDictIO)); if (d_ST_Init == null || d_ST_GetOneObjectResult == null || d_ST_GetMultiObjectResult == null || d_ST_GetLastErrMsg == null || d_ST_Exit == null || d_ST_SentiDictIO == null) { return false; } return true; }