|
-
June 26th, 2006, 11:33 AM
#1
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.
-
June 26th, 2006, 08:07 PM
#2
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.
-
June 27th, 2006, 10:15 AM
#3
Re: Accesing data from device driver
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|