CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 1999
    Posts
    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.

  2. #2
    Join Date
    Mar 1999
    Posts
    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



  3. #3
    Join Date
    Apr 1999
    Posts
    14

    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
  •  





Click Here to Expand Forum to Full Width

Featured