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. [SOLVED] Include .dll without header
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Include .dll without header

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.1k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello... I have got a .dll file and explanation of functions included... However, I don't know how to call these functions since I don't have any header... That .dll was built with Microsoft Visual Studio 2010 -> language C#

    I also have the whole source code of that .dll file...

    1 Reply Last reply
    0
    • Chris KawaC Online
      Chris KawaC Online
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      If it's written in C# then it's CLR (.net) dll. It's not easy to load such creature from pure C++. You would need to bootstrap the CLR runtime in your app or play around with COM. Either way it's gonna be a pain in the you know where.

      The best thing I can suggest is to rewrite the dll in C++ or find existing equivalent. A sort of middle-ground solution would be to write your app in C++/CLR which is Microsoft's managed flavor of C++ (more of a Frankenstein's monster really).

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Oh... I will try to rewrite it into C++... Thank you for answer...

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Seamus Boyle
          wrote on last edited by
          #4

          Have a look at the "QLibrary":http://qt-project.org/doc/qt-4.8/qlibrary.html class, and the Wiki entry entitled "How to create a library with Qt and use it in an application":http://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application

          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