Are you writing the C .dll? Here are the steps I would take but I don't know where you are in this process:
Create C class that accepts a recordset as input and returns whatever value in whatever type you want.
Put a copy of the C .dll on your computer.
In your VB program, make a reference to this .dll. Select Project and References. Choose the Browse button and find the C .dll file.
Now you can instantiate the .dll in your VB application and pass whatever parameters you want to the .dll.
ex - If the .dll is dbverify.dll then:
Dim m_rsRemote as New dbverify.verify
'You have instantiated the .dll
'and can now use it
m_rsRemote.checkForNulls(m_rsLocal)
You can also create the database verifier in VB if you want. It will be a little slower but if you are planning on use ADO, you are going to have a slight performance hit anyway in your C .dll.
If the C .dll exists on a server rather than your local machine, you can either browse to it remotely or you can create an export package from the server and register it on your local machine (which is pretty similar to browsing to it since it is merely defining the server and putting a CLSID for the remote .dll in your registry).