'macro_name':模組名稱不可為巨集或關鍵字
備註
您傳遞給模組屬性的名稱屬性值不能是讓前置處理器擴充的符號,它必須是字串常值。
Example
下列範例會產生 C3309:
// C3309.cpp
#define NAME MyModule
[module(name="NAME")]; // C3309
// Try the following line instead
// [module(name="MyModule")];
[coclass]
class MyClass {
public:
void MyFunc();
};
int main() {
}