Results 1 to 2 of 2

Thread: Windows Shell extension with Qt dll and Matlab(Simulink) qt version error

  1. #1
    Join Date
    Jul 2007
    Posts
    35
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Windows Shell extension with Qt dll and Matlab(Simulink) qt version error

    Hi all, We wrote shell extension for windows explorer using method shellexecutehook() with C++ and Qt 4.5.1 . I register my dll to explorer with regsvr32 command. I have already install matlab 2007a in my computer. I can start matlab but when i try to call some simulink func(ex: bdclose all) it gives error while loading libmwsimulink.dll. It say it can not find method in dll.

    After some research i saw that matlab use Qt 4.1 dlls with simulink. And i show this matlab loads all explorer shell extension dlls also my extension dll at startup.

    I think when matlab tries to load libmwsimulink.dll it see that there is qt dlls in memory and tries to use them and it gives error. Because some qt dlls loaded with my windows shell extension with version 4.5.1 but matlab 2007a wants dlls with version 4.1. so it gives error.

    I want to ask how can i handle this error? have i write my shell extension with Qt 4.1 for working with matlab 2007a. Or shell extension without using qt dll?Or What?
    What do you offer?
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Windows Shell extension with Qt dll and Matlab(Simulink) qt version error

    You cannot mix different Qt versions in one executable. You need to rebuild one of the libraries to use the same Qt version as expected by the other one.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 11
    Last Post: 30th March 2015, 06:03
  2. Replies: 15
    Last Post: 2nd July 2013, 08:45
  3. Replies: 21
    Last Post: 20th October 2010, 13:25
  4. Hide the windows shell
    By franco.amato in forum Qt Programming
    Replies: 4
    Last Post: 23rd October 2009, 21:08
  5. Error when compiling for static version in windows
    By que in forum Installation and Deployment
    Replies: 4
    Last Post: 28th October 2008, 20:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.