Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I want to use VC++ dll in qt can any one assist me
Forum Updated to NodeBB v4.3 + New Features

I want to use VC++ dll in qt can any one assist me

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 1.7k Views 2 Watching
  • 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.
  • R Offline
    R Offline
    Rathod027
    wrote on last edited by
    #1

    I tried many things

    raven-worxR 1 Reply Last reply
    0
    • R Rathod027

      I tried many things

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Rathod027
      you need to be more specific.
      What type of DLL. Where does it come from. What does it contain?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      R 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @Rathod027
        you need to be more specific.
        What type of DLL. Where does it come from. What does it contain?

        R Offline
        R Offline
        Rathod027
        wrote on last edited by
        #3

        @raven-worx I have created a dll on my own in VC++ and want that to be used in qt but it is not working I tried to keep the dll in the debuge folder and include the .h of the vc++ class and add libs+="path of the dll but it's not working " there is an error saying link1104 cannot open file.

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
          http://doc.qt.io/qt-5/third-party-libraries.html

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            And just to be 100% sure.
            The Qt project where you try to use the VC dll is ALSO using the same compiler as you
            used to make the DLL? Both should be the same visual studio compiler.

            R 1 Reply Last reply
            2
            • mrjjM mrjj

              And just to be 100% sure.
              The Qt project where you try to use the VC dll is ALSO using the same compiler as you
              used to make the DLL? Both should be the same visual studio compiler.

              R Offline
              R Offline
              Rathod027
              wrote on last edited by
              #6

              @mrjj one is msvc compiler to create dll and mingw to access dll

              mrjjM 1 Reply Last reply
              0
              • R Rathod027

                @mrjj one is msvc compiler to create dll and mingw to access dll

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Rathod027
                unless its a C dll with c interface functions, that might not work.
                To resolve the symbols (code) correctly, the same compiler should be used.

                1 Reply Last reply
                3

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved