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. Using Visual C++ DLLs on a Qt Application.
Forum Updated to NodeBB v4.3 + New Features

Using Visual C++ DLLs on a Qt Application.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 3.5k Views 1 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.
  • F Offline
    F Offline
    Fracu
    wrote on last edited by
    #1

    I'm trying to protect my Qt application using a software protection dongle.

    I contacted a local provider trying to get some information about implementing this kind of devices on third party applications.

    Basically they'll provide me some DLLs which were created using Visual C++, so I shoud link to that libraries from my Qt Application.

    I wonder if it's possible for me to use these DLLs since my application compiles on Qt using MinGW, not MSVC.

    If it is so could you please guide me on the first steps, or maybe refer me to a good tutorial on how to do this kind of task?

    Thanks in advance!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Unfortunately, it's not possible to link things created with different compilers. Either you'll need a MinGW version of the libraries, or you'll need to build your app with MSVC.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        soroush
        wrote on last edited by
        #3

        You can link MSVC-compiled binaries to MinGW-compiled clients. You will need to convert binary format and re-create symbol table and .a file. (No need to re-compile)

        I didn't try it myself, but heard some success stories. Check "this link":http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs for more information.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dbzhang800
          wrote on last edited by
          #4

          It works for C, but not for C++. As MinGW and MSVC have different name mangling rules for C++.

          [quote author="soroush" date="1337929956"]You can link MSVC-compiled binaries to MinGW-compiled clients. You will need to convert binary format and re-create symbol table and .a file. (No need to re-compile)

          I didn't try it myself, but heard some success stories. Check "this link":http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs for more information. [/quote]

          1 Reply Last reply
          0

          • Login

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