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. DLL created with Qt used in VC++

DLL created with Qt used in VC++

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 739 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.
  • B Offline
    B Offline
    bareil76
    wrote on last edited by
    #1

    I have created some DLL in Qt using MSCV 2012 64bit.

    The DLL use Qthreads, signals and slots. So I added an instance of QCoreApplication in the dll.

    Everyting works ok if I use C# or python. However, if I use Visual C++, the timers don't work, and I guess the threads do not work either.

    Any help would be apreciated.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      U mean to say u r using the exported class in VC ?. It shud not matter. It shud work as is. I have used thread earlier. I remember it working. I have not used timers.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      2
      • B Offline
        B Offline
        bareil76
        wrote on last edited by
        #3

        I found the problem. When using a console the main function returns and the program exit.

        For the QCoreApplication to do its magic, the main function of the console app must return. I built a GUI app instead and it worked.

        1 Reply Last reply
        0

        • Login

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