//file.h
# define PartExport __declspec(dllexport)
namespace Part{
class PartExport MyClass : public data::anotherClass{
MyClass();
void read();
};
}
I want to access this function by doing this below. Visual studio suggests to do "Part::read();" and f12 to that function works.
//main.cpp
#include <file.h>
int main(){
Part::read();
return 0;
}
But when compiling it complains about syntax errors because it thinks that PartExport is the class name. How can I access this function or create an object of MyClass?
edit: I realized that all the syntax errors on the class comes from the #include . I dont know what that means