Can anyone tell me how to access windows api function like CreateFile and ReadFile from VB.NET
This is needed for me to create an app that can communicate over the comports with a Controller card.
Printable View
Can anyone tell me how to access windows api function like CreateFile and ReadFile from VB.NET
This is needed for me to create an app that can communicate over the comports with a Controller card.
Declare them just as you would in VB 6. But remember the data type changes (ie. VB 6 LONG = .NET INTEGER, etc.). The upgrade wizard will automatically convert them if you have exsisting VB 6 code.
Thanks :)
Now I can make my comport driver thingie in .NET !!