|
|
Help With USB Port Programming |
|
Author |
Message |
Dave987654321

|
Posted: Visual Basic Express Edition, Help With USB Port Programming |
Top |
I need some guidance on working with USB ports in VB2005 express.
I have just started looking at it and don't seem to find much info. Specifically I am looking for someone to point me in the right direction rather then supply code, but an example would be nice.
I have a driver supplied by Garmin and I guess I have to assign the GUID to an “object” to work with the device. But What “object” am I looking for and where is it located... System.IO.something
Next Would I build an Interface to the “Object” and then build a class to handle the interaction with the “object”
From What Little I have been able to find out It looks like I will be able to use the serial class to do a lot of the work. But at This point I don't know if I am even in the right ballpark with any of this.
I am an old retired guy, just trying to learn about this programing stuff, so keep it simple if you can.
Thanks
Visual Studio Express Editions41
|
|
|
|
 |
nobugz

|
Posted: Visual Basic Express Edition, Help With USB Port Programming |
Top |
I took a quick look at their SDK,
it is a VS6 sample program written in 'C'. It has all the
necessary voodoo to find the USB device and talk to the USB
driver. Unfortunately, you'll have major problems to make this
work in VB.NET, you'll need loads of very difficult P/Invoke. Two
things you could do: give them a call and point out that their SDK is
hopelessly outdated and, humbly, ask for an update. Or download
the Visual Studio Visual C Express edition and write a C++/CLI wrapper
around the SDK code.
I'd try the phone call first...
|
|
|
|
 |
Dave987654321

|
Posted: Visual Basic Express Edition, Help With USB Port Programming |
Top |
Thanks, I liked the idea of using the CLI and the C++ wrapper, I did some C years and years ago as a hobby So I loaded Garmins SDK into C++ express and got an error on the Windows.H (header) file. After some more research it seems that the express version of C++ only supports Net/CLI NOT Native Windows Development...Off topic, but there is some heated discussions about that.
Anyway this is all a learning experence, so I am still looking and reading.
Any other Ideas
Dave
|
|
|
|
 |
nobugz

|
Posted: Visual Basic Express Edition, Help With USB Port Programming |
Top |
No problemo, you can download and install the PlatformSDK to get VCExpress to play with windows.h; instructions to do so are here...
|
|
|
|
 |
Dave987654321

|
Posted: Visual Basic Express Edition, Help With USB Port Programming |
Top |
OK Thanks, that has me off and running. I have serious learning to do.... Dave
|
|
|
|
 |
|
|