|
-
March 27th, 1999, 12:16 AM
#1
VB program to read ports for temperature controlling.
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.
-
March 28th, 1999, 03:36 AM
#2
Re: VB program to read ports for temperature controlling.
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
-
April 1st, 1999, 04:02 PM
#3
Re: VB program to read ports for temperature controlling.
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....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|