Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Can I import a COM .dll object in Qt?

    General and Desktop
    2
    8
    4527
    Loading More Posts
    • 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.
    • B
      bfabricius last edited by

      Hi everybody,

      I was wondering if it is possible to import a COM object (.dll, only binary available) using Qt? I am aware that it is possible using MSVS 200x after compiling qt for MSVC but I'm very comfortable with QtCreator. I thought I'd ask before going through with the hastle of compiling Qt and changing to a new IDE. I'm trying to import Skype4COM by the way in case anyone has already tried this.

      Greetings,
      bfabricius

      1 Reply Last reply Reply Quote 0
      • T
        tobias.hunger last edited by

        Qt Creator does support MSVC compilers. There is no need to get used to a different IDE;-) Just install visual studio express and the debugger and rebuild Qt with those and you are set.

        1 Reply Last reply Reply Quote 0
        • B
          bfabricius last edited by

          Hey Tobias,

          thanks for the tip. Just saw that there are vc precompiled binaries for windows. For some reason those don't seem to work for me. I changed the toolchain in creator, but my SW would not run. Got an error of the sort "cant't start the process". Any idea what I'm missing. I'll try to recompile qt with msvs express in the meantime.

          Greetings,
          bfabricius

          1 Reply Last reply Reply Quote 0
          • T
            tobias.hunger last edited by

            So You will need to rebuild Qt, any other libraries and your application with MSVC:-( Very inconvenient, I know.

            1 Reply Last reply Reply Quote 0
            • B
              bfabricius last edited by

              For anyones interest,

              I did not have to rebuild Qt for vc. I used the Qt vc++2008 binaries from Qt's download page and got it to work. I had to change the project build preferences to use nmake (use your vc compiler toolchain) for build process after qmake instead of jom. I had missed that initially.

              @tobias: thx for your support!

              Greetings,
              bfabricius

              1 Reply Last reply Reply Quote 0
              • T
                tobias.hunger last edited by

                bfabricius: jom does work with both msvc and mingw. There should be no need to change that.

                1 Reply Last reply Reply Quote 0
                • B
                  bfabricius last edited by

                  well, for some reason it would not compile my projects, maybe the jom i have is only for mingw? would i have to get jom for vc first? i'm not acquainted with jom.

                  Greetings,
                  bfabricius

                  1 Reply Last reply Reply Quote 0
                  • T
                    tobias.hunger last edited by

                    Jom, is yet another make variant. It reads Makefiles and executes the stuff in there -- just like nmake, too. It is in no way mingw specific (only if the Makefiles are;-).

                    Jom supports -j X to run (up to) X jobs in parallel, which is great for multicore systems. nmake does not seem able to do this.

                    PS: I am using jom with msvc, so I am sure it does work. Maybe you need to rerun qmake to regenerate the makefiles for MSVC?

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post