I serach through the forum to find the solution, but seems I can't find any clues. So I hope someone can point me some direction.
I want to use the com port in PC to send and receive data in a DLL library under windows. I searched the forum here that it has a lot of example, but it seems that most of them are "polling" approach. What I want to achieve is as follow: open a com port, register it to a function, and when a byte is received it will call my registered function in my dll. Will it be possible to do it? If it is so, can someone point me a direction or share any code sample? Thanks a lot!