|
-
Apr 23rd, 2002, 01:25 PM
#1
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"
-
Apr 23rd, 2002, 01:46 PM
#2
Have you tried setting a reference to the DLL you used in VB6.
-
Apr 23rd, 2002, 01:55 PM
#3
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!
-
Apr 23rd, 2002, 02:07 PM
#4
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.
-
Apr 23rd, 2002, 02:23 PM
#5
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.
-
Apr 23rd, 2002, 03:27 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|