Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Interaction of dlls between Qt dll and msvs dll
QtWS25 Last Chance

Interaction of dlls between Qt dll and msvs dll

Scheduled Pinned Locked Moved Language Bindings
2 Posts 2 Posters 2.0k Views
  • 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.
  • S Offline
    S Offline
    shisen
    wrote on last edited by
    #1

    i want to create a dll in Qt and also call an mfc dll made by msvc..can i get some proper pointers
    firstly how to create dll in Qt and how to use call my own created dll in Qt
    second how to call msvs dll from Qt creator

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      If you use QtCreator, call new project, select a dll project and that's it, there is a dll.
      Using a dll is a very basic thing in C/C++ and not Qt related, and it depends on how the dll tio use is created.

      does it have C exported functions? then you could load it with QLibrary and call resolve to get the function pointers

      Or you include the header file and linky dynamically to it

      or it has exported classes, then you MUST link dynamically to it.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      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