Results 1 to 3 of 3

Thread: Problem loading a dll

  1. #1
    Join Date
    Dec 2009
    Posts
    62
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem loading a dll

    Hi

    I am using resolve to dynamically load my functions. I have a windows project and a windows mobile project.

    I have two problems:

    1. if I do
    QLibrary library("my file");
    library.load()
    if(!library.isLoaded)
    {
    qFatal("Problem loading dll")
    }

    For Windows I always get isLoaded == false but it works anyway, I can call all functions. So it is just strange but not a showstopper. All calls to resolve return successful.

    2. For Windows mobile I have the dll in the right folder and I have tried various paths. Like with Windows the isLoaded returns false but for Windows Mobile all calls to resolve fail and I cannot use the dll.

    The dll has the declspec set to export and is wrapped in entern C. It works to load it via .NET and the same dll compiled for Windows works (with the isLoaded issue above). However for Windows Mobile I can not get it to resolve.

    Thankful for any ideas on what to look for.

  2. #2
    Join Date
    Sep 2009
    Location
    Tashkent, Uzbekistan
    Posts
    107
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem loading a dll

    May be because of limited WinCE linker functionality. Look here and here. Might help.
    -- Tanuki

    per cauda vel vaculus cauda

  3. #3
    Join Date
    Dec 2009
    Posts
    62
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem loading a dll

    Thanks for the reply, I think you might be right I managed to track down this error print inside QT
    Cannot load library "name" : Not enough storage space available to complete this operation.

    My lib is only 1mb and apart from that I basically have no other code so it seems as just QtCore and QtGui makes it impossible to lad an additional dll on Windows Mobile.

    Not sure how to proceedd with this. I do want dynamic linking.

Similar Threads

  1. Mysql plug in loading problem
    By addu in forum Qt Programming
    Replies: 0
    Last Post: 29th September 2009, 11:14
  2. Replies: 1
    Last Post: 28th August 2008, 21:18
  3. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05
  4. Problem Loading GIF
    By ScoOteR in forum Newbie
    Replies: 3
    Last Post: 6th June 2007, 10:09
  5. QMYSQL loading problem
    By ridgesoft in forum Qt Programming
    Replies: 7
    Last Post: 20th May 2007, 14:47

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.