You can call a dll in vb. All you need to do is create the DLL and include the vi's that you want to place in the DLL by making them exported vi's. Make sure you make connections to the connector pane for the inputs and output that you want for the vi. Define the prototype correctly in application builder when you add them as exported vi's by adding these inputs and outputs. Using the example function call in the define prototype screen you can call them in vb using something similar to the following:
This will be a declare statement:
Private Declare Sub (YOUR FUNCTION IN THE DLL)Lib "PATH of DLL" ( _ByVal OutputString As String, ByVal OutputStringLength As Long)
Then simply call this function later in your VB script.
Hope this helps.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor