Click to See Complete Forum and Search --> : Using WindowsAPI in VB.NET


WillemM
September 15th, 2002, 05:05 AM
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.

DSJ
September 16th, 2002, 09:06 AM
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.

WillemM
September 16th, 2002, 11:11 AM
Thanks :)
Now I can make my comport driver thingie in .NET !!