Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Signal mechanism for Windows shared library
QtWS25 Last Chance

Signal mechanism for Windows shared library

Scheduled Pinned Locked Moved General and Desktop
windows 10event handlingsignalshared library
2 Posts 2 Posters 1.0k Views
  • 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 Offline
    M Offline
    Mark81
    wrote on 26 Nov 2016, 12:28 last edited by
    #1

    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
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 26 Nov 2016, 18:54 last edited by
      #2

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

      1 Reply Last reply
      2

      1/2

      26 Nov 2016, 12:28

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved