Results 1 to 5 of 5

Thread: [QT] - Include DLL in Visual Studio 2010

  1. #1
    Join Date
    Mar 2012
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default [QT] - Include DLL in Visual Studio 2010

    Hello,

    i find a way to include a DLL (coded with QT) in a QT project and under Visual Studio 2010.

    The goal is to have a solution in VS2010 with:
    - A QT library project who build a .dll
    - A QT basic project who use the library.

    The final deploy will be the .dll and the .exe.

    I have reach to do this under QT Creator by including the dll in the .pro file but not in VS2010.

    Thank you for your help.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [QT] - Include DLL in Visual Studio 2010

    We dont do Quick Time (QT) here - I presume you mean Qt?

    By the way, in your deployed app, you will need more dll than just one, e.g. qtcore4.dll, qtgui4.dll etc etc.


    "I have reach to do this under QT Creator by including the dll in the .pro file but not in VS2010."
    I don't know what that means. Are you trying to make a pro file, than get qmake to build some project files? Why not just make the project files in studio? I could help with that. I don't use .pro files so wont be much help there.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Mar 2012
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [QT] - Include DLL in Visual Studio 2010

    Yes, I mean Qt .... :-)

    By the way, in your deployed app, you will need more dll than just one, e.g. qtcore4.dll, qtgui4.dll etc etc.
    Yes but, this DLL's are already inlcluded in the project when you create it in VS2010.
    I want to include my own library.

    "I have reach to do this under QT Creator by including the dll in the .pro file but not in VS2010."
    I don't know what that means. Are you trying to make a pro file, than get qmake to build some project files? Why not just make the project files in studio? I could help with that. I don't use .pro files so wont be much help there.


    No, it speak about .pro fils because is the way to include dll or lib with Qt Creator. But there is no .pro files when you create a Qt project in VS2010. I want to know the way to include my own DLL in VS2010.

  4. #4
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [QT] - Include DLL in Visual Studio 2010

    so you are asking about how to link some application with a library dll?

    This is really not qt related at all - you just add the .lib file (and lib/dll path) to linker properties in visual studio.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  5. #5
    Join Date
    Mar 2012
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [QT] - Include DLL in Visual Studio 2010

    Thanks for your help. It works...

Similar Threads

  1. Qt add in Visual Studio 2010 problem
    By qtmude in forum Installation and Deployment
    Replies: 2
    Last Post: 18th January 2012, 14:41
  2. Qt and Visual Studio 2010
    By SixDegrees in forum Qt Programming
    Replies: 6
    Last Post: 15th November 2010, 19:56
  3. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 16:46
  4. How to Qt4.7 Source with Visual Studio 2010
    By Aenima1981 in forum Installation and Deployment
    Replies: 0
    Last Post: 1st October 2010, 14:00
  5. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 17:42

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
  •  
Qt is a trademark of The Qt Company.