Signal mechanism for Windows shared library



  • Hello, I need to develop a shared library for Windows (dll) that handles low-level serial communication, and provide higher-level interface for .NET applications. I can easily create a class that does everything I need, but but question is about how to create a consistent API for external programs.

    For example: in Qt programming I would bind the "message ready" event to a signal, but what I should use in order to be compatible with a .NET application? I could create a method called isReady() but this is a polling... what is the recommended way to make a "signal" for Windows application in Qt?


  • Moderators

    Hi! I don't know if this is the recomended way, but I'd use simple C-style function callback.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.