⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cvi.c

📁 CVI例程
💻 C
📖 第 1 页 / 共 3 页
字号:
{	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_CSTRING};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x34, CAVT_LONG,	                            returnValue, 2, __paramTypes, fpFile,	                            newInstrumentName);	return __result;}HRESULT CVIFUNC CVI_AppSetWarningBoxes (CAObjHandle objectHandle,                                        ERRORINFO *errorInfo, long enable,                                        long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x35, CAVT_LONG,	                            returnValue, 1, __paramTypes, enable);	return __result;}HRESULT CVIFUNC CVI_AppSetDLLReloading (CAObjHandle objectHandle,                                        ERRORINFO *errorInfo, long enable,                                        long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x36, CAVT_LONG,	                            returnValue, 1, __paramTypes, enable);	return __result;}HRESULT CVIFUNC CVI_AppFakeKeystrokes (CAObjHandle objectHandle,                                       ERRORINFO *errorInfo,                                       SAFEARRAY *keystrokeArray,                                       long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG | CAVT_ARRAY};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x37, CAVT_LONG,	                            returnValue, 1, __paramTypes, keystrokeArray);	return __result;}HRESULT CVIFUNC CVI_AppSetKeystrokeInterval (CAObjHandle objectHandle,                                             ERRORINFO *errorInfo,                                             long milliseconds,                                             long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x38, CAVT_LONG,	                            returnValue, 1, __paramTypes, milliseconds);	return __result;}HRESULT CVIFUNC CVI_AppGetNumKeystrokes (CAObjHandle objectHandle,                                         ERRORINFO *errorInfo,                                         long *numKeystrokes, long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG | CAVT_BYREFO};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x39, CAVT_LONG,	                            returnValue, 1, __paramTypes, numKeystrokes);	return __result;}HRESULT CVIFUNC CVI_AppMakeCVIActive (CAObjHandle objectHandle,                                      ERRORINFO *errorInfo, long *returnValue){	HRESULT __result;	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x3A, CAVT_LONG,	                            returnValue, 0, NULL);	return __result;}HRESULT CVIFUNC CVI_AppGetCVIState (CAObjHandle objectHandle,                                    ERRORINFO *errorInfo,                                    long *projectIsCompiledAndLinked,                                    enum CVIEnum_CVIExecutionState *projectExecutionState,                                    long *intWinIsCompiledAndLinked,                                    enum CVIEnum_CVIExecutionState *intWinExecutionState,                                    long *waitingForUserResponseToDialog,                                    long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG | CAVT_BYREFO,	                               CAVT_LONG | CAVT_BYREFO,	                               CAVT_LONG | CAVT_BYREFO,	                               CAVT_LONG | CAVT_BYREFO,	                               CAVT_LONG | CAVT_BYREFO};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x3B, CAVT_LONG,	                            returnValue, 5, __paramTypes,	                            projectIsCompiledAndLinked,	                            projectExecutionState,	                            intWinIsCompiledAndLinked,	                            intWinExecutionState,	                            waitingForUserResponseToDialog);	return __result;}HRESULT CVIFUNC CVI_AppExitCVI (CAObjHandle objectHandle, ERRORINFO *errorInfo,                                long promptToSaveChanges, long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x3C, CAVT_LONG,	                            returnValue, 1, __paramTypes,	                            promptToSaveChanges);	return __result;}HRESULT CVIFUNC CVI_AppBrkAtNextBreakpointableLn (CAObjHandle objectHandle,                                                  ERRORINFO *errorInfo,                                                  long enable, long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x3D, CAVT_LONG,	                            returnValue, 1, __paramTypes, enable);	return __result;}HRESULT CVIFUNC CVI_AppGetRunProjectState (CAObjHandle objectHandle,                                           ERRORINFO *errorInfo,                                           enum CVIEnum_CVIRunProjectState *runProjectState,                                           long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG | CAVT_BYREFO};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x3E, CAVT_LONG,	                            returnValue, 1, __paramTypes, runProjectState);	return __result;}HRESULT CVIFUNC CVI_AppLockProject (CAObjHandle objectHandle,                                    ERRORINFO *errorInfo, long enable,                                    long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x3F, CAVT_LONG,	                            returnValue, 1, __paramTypes, enable);	return __result;}HRESULT CVIFUNC CVI_AppChangeCVIIcon (CAObjHandle objectHandle,                                      ERRORINFO *errorInfo,                                      char *iconOrModulePath, long iconIdx,                                      long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x40, CAVT_LONG,	                            returnValue, 2, __paramTypes, iconOrModulePath,	                            iconIdx);	return __result;}HRESULT CVIFUNC CVI_AppGenCodeToSrcWindow (CAObjHandle objectHandle,                                           ERRORINFO *errorInfo,                                           char *absolutePathnameOfSrcFile,                                           char *funcName,                                           char *entireFunctionDefinition,                                           char *includeFilesToAdd,                                           long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_CSTRING, CAVT_CSTRING,	                               CAVT_CSTRING};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x41, CAVT_LONG,	                            returnValue, 4, __paramTypes,	                            absolutePathnameOfSrcFile, funcName,	                            entireFunctionDefinition, includeFilesToAdd);	return __result;}HRESULT CVIFUNC CVI_AppScrollToFuncInSrcWindow (CAObjHandle objectHandle,                                                ERRORINFO *errorInfo,                                                char *absolutePathname,                                                char *funcName,                                                long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_CSTRING};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x42, CAVT_LONG,	                            returnValue, 2, __paramTypes, absolutePathname,	                            funcName);	return __result;}HRESULT CVIFUNC CVI_AppGetCVIProcessId (CAObjHandle objectHandle,                                        ERRORINFO *errorInfo, long *processId,                                        long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG | CAVT_BYREFO};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x43, CAVT_LONG,	                            returnValue, 1, __paramTypes, processId);	return __result;}HRESULT CVIFUNC CVI_AppSetVXIPnPStyleOption (CAObjHandle objectHandle,                                             ERRORINFO *errorInfo, long newValue,                                             long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x44, CAVT_LONG,	                            returnValue, 1, __paramTypes, newValue);	return __result;}HRESULT CVIFUNC CVI_AppCreateDLLProjectFromFPFile (CAObjHandle objectHandle,                                                   ERRORINFO *errorInfo,                                                   char *fpFilePath,                                                   char *projectPath,                                                   long loadProject,                                                   long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_CSTRING, CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x45, CAVT_LONG,	                            returnValue, 3, __paramTypes, fpFilePath,	                            projectPath, loadProject);	return __result;}HRESULT CVIFUNC CVI_AppGenWinHelpFromFPFile (CAObjHandle objectHandle,                                             ERRORINFO *errorInfo,                                             char *fpFilePath,                                             enum CVIEnum_CVIFTGenHelpLang language,                                             long includeInstrDriverHeader,                                             long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_LONG, CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x46, CAVT_LONG,	                            returnValue, 3, __paramTypes, fpFilePath,	                            language, includeInstrDriverHeader);	return __result;}HRESULT CVIFUNC CVI_AppSetDllImportLibraryChoices (CAObjHandle objectHandle,                                                   ERRORINFO *errorInfo,                                                   long forAllCompilers,                                                   long useVXIPnPDir,                                                   long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG, CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x47, CAVT_LONG,	                            returnValue, 2, __paramTypes, forAllCompilers,	                            useVXIPnPDir);	return __result;}HRESULT CVIFUNC CVI_AppSetProjectWindowZoom (CAObjHandle objectHandle,                                             ERRORINFO *errorInfo,                                             enum CVIEnum_CVIWindowZoom zoomState,                                             long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x48, CAVT_LONG,	                            returnValue, 1, __paramTypes, zoomState);	return __result;}HRESULT CVIFUNC CVI_AppAddIncludePath (CAObjHandle objectHandle,                                       ERRORINFO *errorInfo,                                       char *includePathString,                                       enum CVIEnum_CVICompilerIncludeList whichList,                                       long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_CSTRING, CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x49, CAVT_LONG,	                            returnValue, 2, __paramTypes,	                            includePathString, whichList);	return __result;}HRESULT CVIFUNC CVI_AppGetDebugExecutionState (CAObjHandle objectHandle,                                               ERRORINFO *errorInfo,                                               enum CVIEnum_CVIDebugExecutionState *exeState,                                               long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG | CAVT_BYREFO};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x4A, CAVT_LONG,	                            returnValue, 1, __paramTypes, exeState);	return __result;}HRESULT CVIFUNC CVI_AppSetDebugExecutionState (CAObjHandle objectHandle,                                               ERRORINFO *errorInfo,                                               enum CVIEnum_CVIDebugExecutionState exeState,                                               long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x4B, CAVT_LONG,	                            returnValue, 1, __paramTypes, exeState);	return __result;}HRESULT CVIFUNC CVI_AppSetDllExportOption (CAObjHandle objectHandle,                                           ERRORINFO *errorInfo,                                           enum CVIEnum_CVIDllExportOptions exportOption,                                           long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x4C, CAVT_LONG,	                            returnValue, 1, __paramTypes, exportOption);	return __result;}HRESULT CVIFUNC CVI_AppSetDllDebuggingOption (CAObjHandle objectHandle,                                              ERRORINFO *errorInfo, long enabled,                                              long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x4D, CAVT_LONG,	                            returnValue, 1, __paramTypes, enabled);	return __result;}HRESULT CVIFUNC CVI_AppSetProjPathSaveOption (CAObjHandle objectHandle,                                              ERRORINFO *errorInfo,                                              long saveOrigProjPath,                                              long *returnValue){	HRESULT __result;	unsigned int __paramTypes[] = {CAVT_LONG};	__result = CA_MethodInvoke (objectHandle, errorInfo, 0x4E, CAVT_LONG,	                            returnValue, 1, __paramTypes, saveOrigProjPath);	return __result;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -