Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Call existing C++ DLL

    General and Desktop
    3
    9
    9219
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      ahdbk last edited by

      hi ,
      i have 3 DLL developed in VS10 en C++ i want to call some function from those DLL in my QT Creator project

      thanks

      Best Regards
      Ahd bk

      Visit www.jci.cc to learn how young people around the world are working to create positive change!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Do you only have the DLLs ? Do you have some headers ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • A
          ahdbk last edited by

          i have the hole VS10 project (Header , source )

          the project export 3 DDLs

          Best Regards
          Ahd bk

          Visit www.jci.cc to learn how young people around the world are working to create positive change!

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            You can follow "this doc":http://qt-project.org/doc/qtcreator-2.7/creator-project-qmake-libraries.html

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • A
              ahdbk last edited by

              ok
              thanks

              Best Regards
              Ahd bk

              Visit www.jci.cc to learn how young people around the world are working to create positive change!

              1 Reply Last reply Reply Quote 0
              • A
                ahdbk last edited by

                hi ,
                with this methode i can add only *.lib files
                i have a DLL not a lib file

                [quote author="SGaist" date="1366022179"]You can follow "this doc":http://qt-project.org/doc/qtcreator-2.7/creator-project-qmake-libraries.html [/quote]

                Best Regards
                Ahd bk

                Visit www.jci.cc to learn how young people around the world are working to create positive change!

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Are you exporting any symbol from your dlls ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply Reply Quote 0
                  • Q
                    qxoz last edited by

                    Hi!
                    Do you use same compiler in your QtCreator project(VS 2010)?
                    When you create C++ dll in output you get *.dll and *.lib files. In this case you can do like "doc":http://qt-project.org/doc/qtcreator-2.7/creator-project-qmake-libraries.html but if you want load library in runtime and for some reasons you don't have *lib and header files you can use "QLibrary":http://qt-project.org/doc/qt-5.0/qtcore/qlibrary.html

                    1 Reply Last reply Reply Quote 0
                    • A
                      ahdbk last edited by

                      i found the lib file thanks for all

                      Best Regards
                      Ahd bk

                      Visit www.jci.cc to learn how young people around the world are working to create positive change!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post