How can I change a Module's export name?

Hello I have a question, I am supposed to use MODULENAME_API in order to export something from my module. This MODULE_API symbol is generated and must match the name of my module. My question is, is it possible to use a name which does not match my module name for this purpose? If I use arbitrary name, which is different from my module name, I get error C2079: ‘Whatever’ uses undefined class ‘WHATEVERUNDEFINED_API’ .

Thanks.

That macro is basically __declspec(dllexport), it does not really depend on module name. What do you want to achieve by using a different module name?