#include "matlabsrvr.h"
typedef interface tagMLApp_IMLApp_Interface MLApp_IMLApp_Interface;
typedef struct tagMLApp_IMLApp_VTable
{
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( MLApp_IMLApp_Interface __RPC_FAR * This,
REFIID riid,
void __RPC_FAR *__RPC_FAR *ppvObject);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( MLApp_IMLApp_Interface __RPC_FAR * This);
ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( MLApp_IMLApp_Interface __RPC_FAR * This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetFullMatrix_) (MLApp_IMLApp_Interface __RPC_FAR *This,
BSTR name,
BSTR workspace,
SAFEARRAY **pr,
SAFEARRAY **pi);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *PutFullMatrix_) (MLApp_IMLApp_Interface __RPC_FAR *This,
BSTR name,
BSTR workspace,
SAFEARRAY *pr,
SAFEARRAY *pi);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Execute_) (MLApp_IMLApp_Interface __RPC_FAR *This,
BSTR name);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *MinimizeCommandWindow_) (MLApp_IMLApp_Interface __RPC_FAR *This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *MaximizeCommandWindow_) (MLApp_IMLApp_Interface __RPC_FAR *This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Quit_) (MLApp_IMLApp_Interface __RPC_FAR *This);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetCharArray_) (MLApp_IMLApp_Interface __RPC_FAR *This,
BSTR name,
BSTR workspace,
BSTR *mlString);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *PutCharArray_) (MLApp_IMLApp_Interface __RPC_FAR *This,
BSTR name,
BSTR workspace,
BSTR charArray);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetVisible_) (MLApp_IMLApp_Interface __RPC_FAR *This,
long *pVal);
HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SetVisible_) (MLApp_IMLApp_Interface __RPC_FAR *This,
long pVal);
} MLApp_IMLApp_VTable;
typedef interface tagMLApp_IMLApp_Interface
{
CONST_VTBL MLApp_IMLApp_VTable __RPC_FAR *lpVtbl;
} MLApp_IMLApp_Interface;
/*const IID IID_IDispatch =
{
0x669CEC93, 0x6E22, 0x11CF, 0xA4, 0xD6, 0x0, 0xA0, 0x24, 0x58, 0x3C, 0x19
};
const IID MLApp_IID_IMLApp =
{
0x669CEC92, 0x6E22, 0x11CF, 0xA4, 0xD6, 0x0, 0xA0, 0x24, 0x58, 0x3C, 0x19
}; */
const IID MLApp_IID_DIMLEval;
const IID MLApp_IID_IMLApp;
HRESULT CVIFUNC MLApp_NewDIMLApp (const char *server, int supportMultithreading,
LCID locale, int reserved,
CAObjHandle *objectHandle)
{
HRESULT __result = S_OK;
GUID clsid = {0x554F6053, 0x79D4, 0x11D4, 0xB0, 0x67, 0x0, 0x90, 0x27,
0xBA, 0x5F, 0x81};
__result = CA_CreateObjectByClassIdEx (&clsid, server, &IID_IDispatch,
supportMultithreading, locale,
reserved, objectHandle);
return __result;
}
HRESULT CVIFUNC MLApp_OpenDIMLApp (const char *fileName, const char *server,
int supportMultithreading, LCID locale,
int reserved, CAObjHandle *objectHandle)
{
HRESULT __result = S_OK;
GUID clsid = {0x554F6053, 0x79D4, 0x11D4, 0xB0, 0x67, 0x0, 0x90, 0x27,
0xBA, 0x5F, 0x81};
__result = CA_LoadObjectFromFileByClassIdEx (fileName, &clsid, server,
&IID_IDispatch,
supportMultithreading, locale,
reserved, objectHandle);
return __result;
}
HRESULT CVIFUNC MLApp_ActiveDIMLApp (const char *server,
int supportMultithreading, LCID locale,
int reserved, CAObjHandle *objectHandle)
{
HRESULT __result = S_OK;
GUID clsid = {0x554F6053, 0x79D4, 0x11D4, 0xB0, 0x67, 0x0, 0x90, 0x27,
0xBA, 0x5F, 0x81};
__result = CA_GetActiveObjectByClassIdEx (&clsid, server,
&IID_IDispatch,
supportMultithreading, locale,
reserved, objectHandle);
return __result;
}
HRESULT CVIFUNC MLApp_DIMLAppGetFullMatrix (CAObjHandle objectHandle,
ERRORINFO *errorInfo,
const char *name,
const char *workspace,
SAFEARRAY **pr, SAFEARRAY **pi)
{
HRESULT __result = S_OK;
unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_CSTRING,
CAVT_DOUBLE | CAVT_ARRAY | CAVT_BYREFIO,
CAVT_DOUBLE | CAVT_ARRAY | CAVT_BYREFIO};
__result = CA_MethodInvokeEx (objectHandle, errorInfo, &IID_IDispatch,
0x60010000, CAVT_EMPTY, NULL, 4,
__paramTypes, name, workspace, pr, pi);
return __result;
}
HRESULT CVIFUNC MLApp_DIMLAppPutFullMatrix (CAObjHandle objectHandle,
ERRORINFO *errorInfo,
const char *name,
const char *workspace, SAFEARRAY *pr,
SAFEARRAY *pi)
{
HRESULT __result = S_OK;
unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_CSTRING,
CAVT_DOUBLE | CAVT_ARRAY,
CAVT_DOUBLE | CAVT_ARRAY};
__result = CA_MethodInvokeEx (objectHandle, errorInfo, &IID_IDispatch,
0x60010001, CAVT_EMPTY, NULL, 4,
__paramTypes, name, workspace, pr, pi);
return __result;
}
HRESULT CVIFUNC MLApp_DIMLAppExecute (CAObjHandle objectHandle,
ERRORINFO *errorInfo, const char *name,
char **returnValue)
{
HRESULT __result = S_OK;
unsigned int __paramTypes[] = {CAVT_CSTRING};
__result = CA_MethodInvokeEx (objectHandle, errorInfo, &IID_IDispatch,
0x60010002, CAVT_CSTRING, returnValue, 1,
__paramTypes, name);
return __result;
}
HRESULT CVIFUNC MLApp_DIMLAppMinimizeCommandWindow (CAObjHandle objectHandle,
ERRORINFO *errorInfo)
{
HRESULT __result = S_OK;
__result = CA_MethodInvokeEx (objectHandle, errorInfo, &IID_IDispatch,
0x60010003, CAVT_EMPTY, NULL, 0, NULL);
return __result;
}
HRESULT CVIFUNC MLApp_DIMLAppMaximizeCommandWindow (CAObjHandle objectHandle,
ERRORINFO *errorInfo)
{
HRESULT __result = S_OK;
__result = CA_MethodInvokeEx (objectHandle, errorInfo, &IID_IDispatch,
0x60010004, CAVT_EMPTY, NULL, 0, NULL)
honglei19880829
- 粉丝: 0
- 资源: 1
最新资源
- 包含 Andrei Neagoie 的《从零到精通掌握编码面试 - 数据结构 + 算法》课程的所有代码示例,使用 Python 语言 .zip
- 数据库课程设计(图书馆管理系统)springboot+swing+mysql+mybatis
- C++ Vigenère 密码(解密代码)
- zblog日收站群,zblog泛目录
- C++ Vigenère 密码(加密代码)
- Vue Router 是 Vue 生态系统的一部分,是一个 MIT 许可的开源项目,其持续开发完全在赞助商的支持下成为可能 支持 Vue 路由器
- PM2.5 数据集 包含上海、成都、广州、北京、沈阳五地的PM2.5观测,csv文件
- 电动汽车与软件定义汽车(SDV)时代的汽车行业数字化转型
- C的两数相加求和的程序代码
- 使用特定版本的 Python 设置 GitHub Actions 工作流程.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈