共用方式為


編譯器錯誤 C3320

'type':型別不可擁有與模組 'name' 屬性相同的名稱

導出的使用者定義型別 (UDT),可以是結構、類別、列舉或等位,不能有與傳遞至 模組 屬性名稱屬性的參數相同的名稱。

範例

下列範例會產生 C3320:

// C3320.cpp
#include "unknwn.h"
[module(name="xx")];

[export] struct xx {   // C3320
// Try the following line instead
// [export] struct yy {
   int i;
};