Com Port Problem
-
Hi I am opening the com port for a printer device and it opens it even if the printer is not connected. More over it sends the data also to com port even printer is not there. Can any body help me how can i detect the device is connected or throw an error if device is not connected or can detect something on the data is not receiving to the device? Thanks Shailesh
-
Hi I am opening the com port for a printer device and it opens it even if the printer is not connected. More over it sends the data also to com port even printer is not there. Can any body help me how can i detect the device is connected or throw an error if device is not connected or can detect something on the data is not receiving to the device? Thanks Shailesh
ports will connect regardless of the device connected or not, try to send some data and then wait for the signal from the printer, if no signal then raise error if you just want to control the printer why not use the printer api C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg