Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Signal mechanism for Windows shared library

    General and Desktop
    windows 10 event handling signal shared library
    2
    2
    733
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mark81 last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

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

        1 Reply Last reply Reply Quote 2
        • First post
          Last post