AnsweredAssumed Answered

OpUI.NET example - fail to load "pubapi.dll"

Question asked by Abe on Dec 7, 2012

I am recently playing around with the OpUI.NET example, which is shipped together with TestExec SL software from Agilent.
When I am debugging the code, I found some errors: "Unable to load DLL 'pubapi.dll': The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)"

1. OpUI.NET is using TestExecCore.dll
2. TestExecCore.dll imports APIs from "pubapi.dll"
3. "C:\Program Files\Agilent\TestExec SL 6.1\Bin" is added to system search path.

Therefore, I copied pubapi.dll to the debug folder, and it doesn't work. Still get the same error. 
I also tried to use the whole path, like 

DllImport("c:\test\pubapi.dll", EntryPoint = "_VLoadTestsuite@4", CharSet = CharSet.Ansi)

But still got the same error.

Is there anyone who can help me with this problem?

Thanks and regards,