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?
#include "DLL_ConfigFile_global.h"
class DLL_CONFIGFILESHARED_EXPORT Config{
void test();
.
.
}
#include "DLL_ConfigFile_global.h"
class DLL_CONFIGFILESHARED_EXPORT Config{
void test();
.
.
}
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:
Config Ctest;
Ctest.test();
Config Ctest;
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
Bookmarks