CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284

    Using WindowsAPI in VB.NET

    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.
    WM.

    What about weapons of mass construction?

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    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.

  3. #3
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284
    Thanks
    Now I can make my comport driver thingie in .NET !!
    WM.

    What about weapons of mass construction?

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