Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Thread: How to use QLibrary?

  1. #21
    Join Date
    Aug 2010
    Posts
    32
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to use QLibrary?

    Quote Originally Posted by wysota View Post
    Yes, it's called a "compiler". It takes the source code as input and outputs the import library and runtime library.
    So you are saying that I can use the source code but its made in borland c++ compiler, I don't think that its compatible with MINGW. So my idea was to reconstruct the import library from the DLL, so I ask if someone knows a tool that can do it.

  2. #22
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to use QLibrary?

    Unless the code contains macro's only available to Turbo C++, you can just recompile it with any other compiler. Of course, all the other dependencies need to be met too.

    At least, the documentation you copied here on the forum states it should be possible.

  3. #23
    Join Date
    Aug 2010
    Posts
    32
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to use QLibrary?

    Quote Originally Posted by tbscope View Post
    Unless the code contains macro's only available to Turbo C++, you can just recompile it with any other compiler. Of course, all the other dependencies need to be met too.

    At least, the documentation you copied here on the forum states it should be possible.
    I tried to do that, but I get a lot of errors:
    Qt Code:
    1. D:/Qt/2009.03/qt/QT_teste/mpusbapi/_mpusbapi.cpp:113: error: cannot convert `char*' to `WCHAR*' for argument `1' to `int wsprintfW(WCHAR*, const WCHAR*, ...)'
    2. D:/Qt/2009.03/qt/QT_teste/mpusbapi/_mpusbapi.cpp:120: error: cannot convert `char*' to `const WCHAR*' for argument `2' to `LONG RegOpenKeyExW(HKEY__*, const WCHAR*, DWORD, REGSAM, HKEY__**)'
    3. D:/Qt/2009.03/qt/QT_teste/mpusbapi/_mpusbapi.cpp:128: error: cannot convert `const char*' to `const WCHAR*' for argument `2' to `LONG RegQueryValueExW(HKEY__*, const WCHAR*, DWORD*, DWORD*, BYTE*, DWORD*)'
    4. D:/Qt/2009.03/qt/QT_teste/mpusbapi/_mpusbapi.cpp:277: warning: passing NULL used for non-pointer converting 4 of `DWORD MPUSBGetDeviceLink(DWORD, CHAR*, CHAR*, DWORD, DWORD*)'
    To copy to clipboard, switch view to plain text mode 

    most of them was like these.
    Last edited by digog; 5th November 2010 at 21:28.

Similar Threads

  1. QLibrary in PyQt
    By Urthas in forum Qt Programming
    Replies: 0
    Last Post: 30th October 2009, 18:46
  2. QLibrary resolve problem
    By Nippler in forum Qt Programming
    Replies: 0
    Last Post: 4th December 2008, 15:37
  3. Using Qlibrary on a function that uses arguments
    By schall_l in forum Qt Programming
    Replies: 8
    Last Post: 9th September 2008, 21:58
  4. The problem with QLibrary, help me!
    By dungsivn in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2008, 14:03
  5. Qlibrary
    By rianquinn in forum Qt Programming
    Replies: 5
    Last Post: 4th February 2006, 12:23

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.