From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

请教加载lib遇到的问题

各位帮忙看下:

我在CVI8.5环境下作了一个LIB静态库文件,在Windows2003下面加载的时候就会出现GDF报错,在Windows XP下面就运行正常。代码如下所示

(为了缩短运行时间,我在初始化的过程中 将静态库中的函数地址读取到函数指针中,在主程序中调用这个函数。 )

Initialization()

{

     ...

 

     if(dllHandle = LoadExternalModule(DLLName) > 0)

     {

            PFuncAddr = GetExternalModuleAddr(...); 

     }

}

 

Main()

{

        PFuncAddr();

}

 

0 積分
1 條訊息(共 2 條)
5,644 檢視

win2003 的核心是 win2000

 

嘗試不要 windows update 看看

 

或 windows update 到最新版

0 積分
2 條訊息(共 2 條)
5,630 檢視