10-18-2011 10:28 PM
Hi,
I want to call a dll writting in VB6.0 from teststand. But as i see from the "Step Setting" in teststand, only the C/C++ Dll can be selected in the "adapter" type. I try to use this one as my adapter to call my VB6.0 dll, in result, there is no function can be seen in the "function" tab in teststand.Anyone know how to call the DLL writing in Vb6.0?
Solved! Go to Solution.
10-19-2011 12:38 AM
Hi Ivan,
Just to be sure that your DLL is not wrong
you have check if all functions are well and present.
There is tool called "Dependency Walker" You can download it at http://dependencywalker.com/ .
With it you can look "inside" your dll
If you will see your functions there, you will see them (in my case !!always!!) in TestStand, too.
Hope this helps
Greetings
Juergen
10-19-2011 04:54 AM
Hi j_dodek,
How to call the Vb's DLL in teststand?is it the same as calling the C/C++ dll?
10-19-2011 05:34 AM
10-19-2011 06:20 AM
Here is some examples using VB6 and TS4.1. They may help.
http://zone.ni.com/devzone/cda/epd/p/id/5945
10-19-2011 06:29 AM
10-19-2011 07:41 AM
Probably, in which case the ActiveX/Com Adapter should be used not the DLL adapter. The examples I linked to use a VB6 EXE as an ActiveX server.
10-19-2011 08:56 AM
Yes, you should use the ActiveX adapter.
-Doug
10-25-2011 12:13 AM
thanks for you guys kindly reply.
I successfully call my DLL now. it need to use the ActiveX adapter and the dll need to be registered with the command:" regsvr32 "[path]\NameOfFile.extension" before using it.
thank you very much!