Can I import a COM .dll object in Qt?



  • 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


  • Moderators

    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.



  • 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


  • Moderators

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



  • 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


  • Moderators

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



  • 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


  • Moderators

    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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.