>Hi,
>My old DOS application that use to trigger POS drawer to open
>are written using C. So, I had to convert it into Visual Basic
>code, is there any way to write and read from the COM and LPT
>port using similar function like C function 'inport' and 'outport'
>in Visual basic.
>Please kindly help and advise. Thank you
>Best Regards
>Virusim
VFP'c supported control code for write from commport and LPT same VB and VC.I suggest you use API name VBIO.DLL whict you can download some sample on UT Download name Control hardware...But VBIO.DLL support only WIN9X.
I have other rountines for control hardware with Commport only support all Win.Please visit my website
http://thaisofthouse.cjb.net (Thaifox Programmer)
Hopping to help you
Best Regards
Suppachai Klungkaew