I just put together a simple VB6 example program for you. It's a small form that opens the weather station when it's started, retrieves and displays the temperature and pressure when you click a button, and then closes the weather station when you're done.
In order to use it, you'll have to
download the Vantage Pro 2 dll from Davis. After you run the installer, you MUST copy the new VantagePro.dll file to your Windows\System32 folder or else Visual Basic will not be able to find the DLL.
And of course you'll have to close WeatherLink or any other program (such as VWS) you have that accesses your weather station before the sample can run successfully. Only one program at a time can use the COM port.
I also included a file called VantageProAPI.txt. It's a text file that you should copy to your "Program Files\Microsoft Visual Studio\Common\Tools\Winapi\" folder. It's meant to be loaded in your Microsoft Visual Studio 6.0 \ Microsoft Visual Studio Tools 6.0 \ API Text Viewer program. If you haven't used the API viewer before, it is an easy way to include functions in your program.
VantageProAPI.txt contains Visual Basic declarations for every type, function, and constant Davis included in the VantagePro.dll code. The documentation for the functions is included with the DLL installation package, but it's for C programmers. My sample program uses a few of each to give you an idea of how to declare and use types, constants and functions. But I've tested only a few of the functions, so there may still be bugs lurking in my untested declarations. I apologize in advance if there are any.
You can download the zipped file containing my sample VB 6 program and including the VantageProAPI.TXT file from
http://home.comcast.net/~jadeters/TestVantagePro.zip.
Good luck!