NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call the DLL writing in Vb6.0 from testsatnd?

Solved!
Go to solution

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?

0 Kudos
Message 1 of 9
(4,685 Views)

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 9
(4,682 Views)

Hi j_dodek,

How to call the Vb's DLL in teststand?is it the same as calling the C/C++ dll?

 

 

 

0 Kudos
Message 3 of 9
(4,676 Views)

If it is a DLL you can use the C/C++ Adapter.

have you tried the link. ?

Does it show your functions ?

if not the error is somewhere in your Dll.

 

if present, may be the blue ones have some idea

 

Regards

Juergen 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 9
(4,673 Views)

Here is some examples using VB6 and TS4.1. They may help.

 

http://zone.ni.com/devzone/cda/epd/p/id/5945

 

 

Regards
Ray Farmer
Message 5 of 9
(4,670 Views)

Hi Ray,

 

Good link !

 

I am courious if we talking about an ActiveX Server DLL. It makes sense...

 

Regards

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 9
(4,668 Views)

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.

 

 

Regards
Ray Farmer
0 Kudos
Message 7 of 9
(4,664 Views)
Solution
Accepted by topic author Ivan Chen

Yes, you should use the ActiveX adapter.

 

-Doug

0 Kudos
Message 8 of 9
(4,659 Views)

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!

0 Kudos
Message 9 of 9
(4,616 Views)