CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    83

    Accesing data from device driver

    To all the VB gurus out there, I've a simple task but don't know where to start. I would like to display on my VB form a value that is calculated by a function called DoScore in the device driver code. I have access to the driver code that's written in C.


    What is required of the Device Driver programmer to allow me access to this function and how do I didsplay it in the form?

    Thanks for any input.

  2. #2
    Join Date
    Mar 2005
    Posts
    226

    Re: Accesing data from device driver

    I am assuming that your device driver coder is still writing code and you are asking how they can pass data back to you. There are several ways to do this. One is that he can write the value to a file which you can then read. He can write the value to the registery and you can then read it. You can write a function that he can call from his routien(use standard calling convention). He can write an activeX control which you can include in your VB code that when called, he can send the info back.

  3. #3
    Join Date
    Jan 2006
    Posts
    83

    Re: Accesing data from device driver

    Quote Originally Posted by RoyK
    I am assuming that your device driver coder is still writing code and you are asking how they can pass data back to you. There are several ways to do this. One is that he can write the value to a file which you can then read. He can write the value to the registery and you can then read it. You can write a function that he can call from his routien(use standard calling convention). He can write an activeX control which you can include in your VB code that when called, he can send the info back.
    Roy, thanks for your response.
    The preference is for me to write the code to access the DoScore value and not have the device driver programmer do any modifications to his code. My first method was to use file read/write but that was not acceptable. A suggestion made by a colleague was to use API calls. Can you shed some light on this?

    Thanks once again

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