Click to See Complete Forum and Search --> : VB program to read ports for temperature controlling.


BALAJIKUMAR
March 26th, 1999, 11:16 PM
Hi,

I am Balaji here and am a final year engineering student.I have designed a temperture controller interface card to be inserted in IBM compatible PC slot.

Now I require to write a user interface in VB5.0/6.0 so that the user can set temperature and he gets a chart showing the changes in temperature and he can decide when to switch of the heater i.e at what temperature.

I have already written a interface in C lang but am not pleased with the user interface.I would like to know if VB can directly read from the ports or if any of win95 dll can be used such as "win95io.dll" .If so how ??????

Please help


Bye Balajikumar.

Akash
March 28th, 1999, 02:36 AM
Dear Balaaji


What you can do is you can export your functions to get data and set data in a DLL using normal 'C ' language or if you want to make your life easy using DLL try out VC++ 4.0 + compiler . Make the DLL and then call the functions from DLL using VB. To call functions in VB from DLL use Declare Function..... . You can find out the syntax in books


Thanks

Akash

Owen
April 1st, 1999, 03:02 PM
Check out the VB documentation on making API calls. Should do everything you need it to.

Strings are a bit tricky to pass between C and VB, but once you know how....