According to your description, I think you receive Compiler Error C3395. I am sorry to say that you cannot use dllexport on any method that includes a CLR type in its signature. The reason is that dllexport is a purely native construct and there is no way
to support passing a CLR type, like System::Type and System::String, through the DLL boundary.
To fix this issue, please try the following recommended methods:
1->Don't use managed parameters or change it to a managed class.
2->Try to use this as a static library instead of a dynamic library.