Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: Fixed a problem. Help me understand why :)

  1. #21
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Fixed a problem. Help me understand why :)

    you need dllimport if you #include something where the implementation is inside a dll.

    You say you have something that works without dllimport - have you only included the header, and not the cpp in that example? I would expect you to receive linker errors.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  2. The following user says thank you to amleto for this useful post:

    tescrin (2nd August 2012)

  3. #22
    Join Date
    Jun 2012
    Posts
    98
    Thanks
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Fixed a problem. Help me understand why :)

    As per the other thread, (now that I get it), I believe I had the #if defined "guards" importing/exporting it correctly. Difference being that the included directories were probably current versus non current. Time to correct my instructions. Thanks again!

Similar Threads

  1. trying to understand qsettings ...
    By kerim in forum Newbie
    Replies: 7
    Last Post: 28th April 2011, 13:30
  2. Replies: 6
    Last Post: 13th May 2010, 13:54
  3. Something i am not understand about Qt.
    By HeX0R in forum Newbie
    Replies: 8
    Last Post: 12th February 2010, 04:37
  4. need help .not able to understand.......
    By sh123 in forum Qt Programming
    Replies: 1
    Last Post: 20th January 2009, 01:50
  5. PyQt QTimer problem { FIXED }
    By WinchellChung in forum Newbie
    Replies: 0
    Last Post: 1st March 2008, 16:50

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.