PDA

View Full Version : Can windows run a dll created by Qt containing a class



thingfish47
18th April 2014, 10:50
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?

ChrisW67
18th April 2014, 22:34
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.