I have created a dll like this:
In my DLL
In my Project that imports the Dll:
I have copied the .dll and .lib to my projectfolder and I have added the .lib
to the project linkings.
So!
Why do I get this?
myImports.h : error C2501 : 'MyClassA' : missing storage-class or type specifiers
What should I do to give myClassC access to the "hidden" classes?
In my DLL
Code:
//MyClassA.h
class MyClassA
{
}
Code:
//myClassB.h
class MyClassB
{
}
Code:
//myClassC.h
#include "myClassA.h"
#include "myClassB.h"
class __declspec(dllexport) MyClassC
{
MyClassA *aObj;
MyClassB bObj;
}
In my Project that imports the Dll:
Code:
//myImports.h
class __declspec(dllimport) MyClassC
{
MyClassA *aObj;
MyClassB bObj;
}
to the project linkings.
So!
Why do I get this?
myImports.h : error C2501 : 'MyClassA' : missing storage-class or type specifiers
What should I do to give myClassC access to the "hidden" classes?