Results 1 to 6 of 6

Thread: AnyBody Know This?

  1. #1
    NoRocketScience
    Guest

    Question AnyBody Know This?

    Does anyone know how VB.net communicates with a Port (like 1) ? I have a credit card machine hooked up and running XP, but VB .net does not have a MSComm tool. I am not sure how to get it to talk to it.

    Please Help!!

    Texas Twang "yeehaw"

  2. #2
    Thelonius
    Guest
    Have you tried setting a reference to the DLL you used in VB6.

  3. #3
    NoRocketScience
    Guest
    No, I have not tried that. I was not sure of the backwards compat issue. I am just starting to learn the VB.net stuff and they have changed SO much that I did not trust spending the time trying to get it to work with the old stuff! THanks, I will give that a try!


  4. #4
    Thelonius
    Guest
    With the exception of a few controls and DLLs, I've found most of the older DLLs work just fine with VBdN. I imagine redistribution may be a little trickier, but they should still work.

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    The System.IO.Stream classes should allow you to read from com ports..dont ask me how though.

    something like this

    Code:
    Comm = CType((New System.IO.FileInfo("COM1").Open( _
    FileMode.Open, FileAccess.Read, FileShare.None), _
    System.IO.FileStream)
    CommRead = New StreamReader(Comm)
    probably will have to play around with that...but I think that can put you on the correct path.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6
    NoRocketScience
    Guest
    Thanks Cander. Another good idea!! I will also try this!

    Many thanks!

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