Dim A
Aug 22nd, 2000, 12:18 PM
OpenComm used to be used in VB3.0 to open commPorts via an API call, but I'm using VB5 now and need to accomplish the same thing.
Basically, I need to open a couple comm ports, print some text and then close them. Since this is done only once at the start of the program as an equipment test a bulky activeX control is not a good solution. I'd also like something that is faster since MSComm control takes .5 seconds to open and close a port...
I've found a thread that sort of talks about what I need to do:
http://forums.vb-world.net/showthread.php?threadid=25532
Could anyone give me more details on the syntax with using CreateFile and WriteFile API calls to open Comm ports?
Thanks,
Dim A
Basically, I need to open a couple comm ports, print some text and then close them. Since this is done only once at the start of the program as an equipment test a bulky activeX control is not a good solution. I'd also like something that is faster since MSComm control takes .5 seconds to open and close a port...
I've found a thread that sort of talks about what I need to do:
http://forums.vb-world.net/showthread.php?threadid=25532
Could anyone give me more details on the syntax with using CreateFile and WriteFile API calls to open Comm ports?
Thanks,
Dim A