You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.18 11:47:15