Hiya!

I have a MFC Extension dll.

class AFX_EXT_CLASS CMyClassInDll
{
public:
CMyClassInDll();
~CMyClassInDll();

void MinMetod();
};

CMyClassInDll::CMyClassInDll()
{

}

CMyClassInDll::~CMyClassInDll()
{
}

void CMyClassInDll::MinMetod()
{
AfxMessageBox( _T("Funkade ganska bra") );
}



I have the dll in the same workspace as my main program, when I compile I get the following warnings.
'CMyClassInDll::CMyClassInDll' : inconsistent dll linkage. dllexport assumed.
'CMyClassInDll::~CMyClassInDll' : inconsistent dll linkage. dllexport assumed.
'MinMetod' : inconsistent dll linkage. dllexport assumed.

What is wrong? Everything works as i should.

Thanks
Magnus