在InstallShield中调用DLL时出现0x80040704错误的问题排查
InstallShield调用pdshist.dll时错误0x80040704排查求助
在使用InstallShield调用C语言编写的pdshist.dll时,触发错误代码0x80040704,请求协助排查原因及解决方法。
DLL函数原型(C语言)
DLL_EXPORT int HistQueryFlat( char *Product, char *Version, char *SType) { int Result; char *ItemVersion; HIST_ITEM *Item; HIST_TYPE Type; HIST_HANDLE HistFile; HIST_FILE File; HIST_STATUS Status; HIST_FILTER Filter; int SP, Num; #ifdef LOGGING FILE *Log;
InstallShield项目代码
头文件代码
#define PDS_HISTORY_DLL "pdshist.dll" prototype pdshist.HistQueryFlat(STRING, STRING, STRING);
实现代码
nResult = pdshist.HistQueryFlat(@PRODUCT_NAME, svPdsProductVersionIdentifier, svPdsProdType);
错误信息
错误截图显示InstallShield运行时触发错误代码0x80040704,提示函数调用相关失败。
恳请协助排查该错误的原因及对应的解决方法。
内容的提问来源于stack exchange,提问作者Manoher Kumar
相关产品推荐
相关产品推荐

