hello out there
i have a program i made to scan barcodes and reformat the data it gets from com2
now when the thing scanns theres a function called
to a class but if there is no new data present it just sit's
there waiting for new data ? and will no go any further
is there a way to test a fuction if it has data or if it empty ?
and make it do something not just sit there im new to c++
and help is greatly appreciated if i worded something in correctly
i apologize
while (exit != 1)
{
char zData = aPort.read (); // read com two data var by var
char key = zData;
keybd_event(VkKeyScan(key),0x9e,0 , 0); // Press
keybd_event(VkKeyScan(key),0x9e, KEYEVENTF_KEYUP,0); // Release
}