Results 1 to 2 of 2

Thread: Can windows run a dll created by Qt containing a class

  1. #1
    Join Date
    Nov 2013
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Question Can windows run a dll created by Qt containing a class

    I have some code (actually a Steinberg VST plugin) that needs to perform tcp comms. Qt makes the comms VERY easy, and I have them working well from a Qt application, but I need to use then from the windows code. I have created a class in Qt that provides all the support the windows code needs, and placed it in a Qt dll using a Qt library project, but I am struggling to access it from windows. Is it possible, and if so, is there an example/tutorial I can peruse?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Can windows run a dll created by Qt containing a class

    It is possible but we have so little information on what you are actually trying to do.

    There are at least two major items to deal with:

    To access C++ interfaces the DLL and program using it must be compiled with binary compatible, usually identical, compilers. If the DLL has C-style interfaces then this requirement can be eased a bit.

    In order for the Qt networking to function the DLL must somehow arrange to have a Qt event loop running in the program.

Similar Threads

  1. QWidget created on Windows Widget
    By cic in forum Qwt
    Replies: 6
    Last Post: 5th August 2013, 16:47
  2. Replies: 4
    Last Post: 30th December 2012, 22:20
  3. Replies: 0
    Last Post: 19th September 2011, 16:10
  4. Replies: 2
    Last Post: 28th June 2011, 14:09
  5. Replies: 3
    Last Post: 27th December 2008, 19:34

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.