how can i add Dll File and use it in Qt Creator ??
how can i add Dll File and use it in Qt Creator ??
You don't. You add the lib file to your .pro and it references the dll file for you.
what if there is no lib file just dll and header file
If you are using MingW in the Qt SDK then you can probably reference the DLL directly with: 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
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
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.
Bookmarks