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. COM / DLL / ActiveQt

COM / DLL / ActiveQt

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 5.2k 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.
  • P Offline
    P Offline
    paulanon
    wrote on last edited by
    #1

    Sadly new to Qt and COM/DLL. But ActiveQt to save the day!? Sadly, I can't find good examples for loading a DLL dynamically (when needed) in my C++/Qt program and calling functions in the DLL (parameters and return values). Much appreciate guidance. Thank you.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      The "QLibrary":http://doc.qt.nokia.com/latest/qlibrary.html documentation is actually pretty good.

      Just for finding a bunch of C functions in a library you don't need ActiveQt. Use ActiveQt just for COM or ActiveX components.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • P Offline
        P Offline
        paulanon
        wrote on last edited by
        #3

        To clarify my question, if I have a dll that is COM/Activex and I want to call the functions, I can use the resolve function in QLibrary? That sounds less painful, but still not clear how I can do that without given the header file associated with the dll; I do have documentation with it. Thank you.

        Edit: This dll is used for reading in a proprietary file format. So, it's not a simple function call (like a math function). I need to connect to the dll, open the file through a function in the dll, then call various functions to access data through the dll, close the file, and disconnect from the dll.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Franzk
          wrote on last edited by
          #4

          I've never tried to actually use a COM object in a C/C++ project. Did you actually look through the "ActiveQt Container documentation":http://doc.qt.nokia.com/latest/activeqt-container.html?

          "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • P Offline
            P Offline
            paulanon
            wrote on last edited by
            #5

            I've quickly looked through it. I wish there were some sample code to get me started. But yes, I should definitely look at the doc more carefully.

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Franzk
              wrote on last edited by
              #6

              How about the "ActiveQt examples":http://doc.qt.nokia.com/main-snapshot/examples-activeqt.html?

              "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • P Offline
                P Offline
                paulanon
                wrote on last edited by
                #7

                Thank you for looking into this. But I believe all of them are for creating an activex component, not using it.

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Franzk
                  wrote on last edited by
                  #8

                  The Qutlook example uses the Outlook COM object.

                  "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    paulanon
                    wrote on last edited by
                    #9

                    I feel silly. That was the ones I didn't bother looking. Yes, it does use COM, but it doesn't seem to be calling the DLL directly. I'll need to look at what msoutl.h/cpp contains.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      paulanon
                      wrote on last edited by
                      #10

                      Just in case you're interested, I've gotten a bit further. New thread posted here:
                      http://developer.qt.nokia.com/forums/viewthread/9957/

                      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