I am trying to figure out how to connect to a proprietary piece of hardware in VB 6. It shouldn't be that hard to do through a COM interface and we already have it working with Matlab.

I'd guess that to connect to the hardware, I'd have to enter a line like:

Public WithEvents streamer as HRStream.Streamer

but that doesn't seem to do anything.

Do I also need to add something to the project in the project menu?

Here are the directions from the manual:

---------------------------------------
The HRStream.COM interface exposes exactly the same functionality as the ABStreamer .NET library. Thus, any programming language that can deal with COM (Matlab, VB etc) can use HRStream. When HRStream is installed it automatically registers the COM interface on your machine. The interface goes by the name “HRStream.Streamer”. A typical sequence in Matlab could look like this:

try
// Create streamer object
streamer = actxserver( 'HRStream.Streamer' );
Page 22 of 22
// Open streamer, connects to the hardware
streamer.Open();
// Load a strategy file
streamer.LoadStrategyFile( … );
// Compile strategy and set it on the player
streamer.SetStrategyToPlayer();
// Play a wave file
streamer.PlayWav_ua( … );
// Close the streamer
streamer.Close();
// Dispose the streamer
streamer.delete;
catch
// Catch any error and display it
streamer.Close();
pause(1);
streamer.delete;
error( ['ERROR>> ', lasterr] );
end
-----------------------------------------------------

Any advice would be greatly appreciated.

Thanks.