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
Forum Updated to NodeBB v4.3 + New Features

Signal mechanism for Windows shared library

Scheduled Pinned Locked Moved General and Desktop
windows 10event handlingsignalshared library
2 Posts 2 Posters 1.1k Views 1 Watching
  • 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 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 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

      • Login

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