View Full Version : Adding Dll
Ma7moud El-Naggar
3rd June 2010, 22:55
how can i add Dll File and use it in Qt Creator ??
squidge
3rd June 2010, 23:08
You don't. You add the lib file to your .pro and it references the dll file for you.
Ma7moud El-Naggar
8th June 2010, 23:42
what if there is no lib file just dll and header file
ChrisW67
9th June 2010, 07:37
If you are using MingW in the Qt SDK then you can probably reference the DLL directly with:
LIBS += something.dll but I haven't tried that (based on the info here http://www.mingw.org/wiki/sampleDLL). Typically you would have the import library (something.lib for MSVC or libsomething.a for MingW) and use it like fatjiucymole posted. MingW can create an import library from a DLL too: http://www.mingw.org/wiki/CreateImportLibraries
Ma7moud El-Naggar
10th June 2010, 17:06
in MSVC it creates type library (tbl file) when i add dll file
and as i know lib file is static library why i can't deal with dll directly
i w'll try what ChrisW67 said
thank you
ChrisW67
11th June 2010, 01:03
The suggestions I made are for MingW not MSVC.
The LIB file defines the entry points for the DLL so the linker knows they exist and can set up dynamic loading/linking of the DLL. The LIB file is not a static library of routines in its own right. If there's a type library (TLB) file then the DLL is probably a COM object that could be dynamically accessed using ActiveQt.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.