pos in visual foxpro

I planned to develop POS in Visual Foxpro, How can I integrate barcode scanner and cash register with the system. I mean How can I control the cash register to open/close.. and barcode also how can i capture the result of the barcode... Thanks in advance.. Im just a begnner
[274 byte] By [Onelle] at [2008-2-26]