Results 1 to 3 of 3

Thread: using QT in DllMain

  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default using QT in DllMain

    Can anyone give me a sample solution where console msvs dll project uses some qt code lines to produce an output .

    I have solved my task in console Qt Application. But I can not export it as a dll function return.

    The common mistake is
    C:\4.2.0\lib\QtCored4.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2F0

    while console Qt application don't have any troubles.

  2. #2
    Join Date
    Aug 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: using QT in DllMain

    The Problem is clear now.No Qt *.exe or *.dll can be launched from elsewhere except for the corresponding opened solution in visual studio.

    So, my Qt installation troubles where not critical while I worked within a project.
    How can I fix my Qt installation?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: using QT in DllMain

    Maybe you have two sets of Qt libraries and only one works? Can you run Qt Assistant or other tools that come with Qt?

    At least twice my Qt installation got corrupted, just as if my hard drive has lost the contents of Qt DLLs, and I had to recompile Qt.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.