Results 1 to 4 of 4

Thread: "DLL_ConfigFile_global.h"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2012
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default "DLL_ConfigFile_global.h"

    hey there,
    I just built a dll project in QTcreator, what's weird is that if I write regular classes and i don't define DLL_CONFIGFILESHARED_EXPORT I can still use the methods of the classes of the dll in another project when i import the dll. how come?

    Qt Code:
    1. #include "DLL_ConfigFile_global.h"
    2.  
    3. class DLL_CONFIGFILESHARED_EXPORT Config{
    4.  
    5. void test();
    6. .
    7. .
    8.  
    9. }
    To copy to clipboard, switch view to plain text mode 

    so here, with the above code after I build the dll. I open another project I point it to this dll and the above header file and then in main I can use:
    Qt Code:
    1. Config Ctest;
    2. Ctest.test();
    To copy to clipboard, switch view to plain text mode 

    now if I remove DLL_CONFIGFILESHARED_EXPORT I can still do that, how come?

    Thank you
    Last edited by kzaarouri; 3rd March 2012 at 21:18.

Similar Threads

  1. Replies: 1
    Last Post: 7th April 2010, 21:46
  2. Replies: 3
    Last Post: 15th February 2010, 17:27
  3. Replies: 3
    Last Post: 8th July 2008, 19:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

Tags for this Thread

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.