Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using WHLLAPI.dll

Status
Not open for further replies.

TimSchild

Programmer
Mar 21, 2002
3
AU
I am maintaining a vb6 program that connects to a mainframe to send and receive data by using a Rumba .wdm. Now I need to change the code so that users have the option to choose to use HummingBird instead of Rumba. In the current code the references to the Rumba wdm are hard coded. I have attempted to adjust the code to read these settings from an external source but after having done this data is nolonger being passed to the mainframe session from my prog. My prog is shelling out to the correct rumba wdm after reading in the settings but there is some problem connecting to the WHLLAPI.dll.

When I call WinHLLAPIStartup it returns 1 which I believe is correct.

When I interegate the version from the WinHLLAPIData struct it is 0. It is as if the data structure has not been populated.

When I call WinHLLAPI it returns 1 which I think means not connected.

Unfortunately I didn't write this code originally, so I don't know all its ins and outs.

Can anyone shed some light on why it has stoped working?

Thanking you in anticipation,

Tim.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top