共用方式為


編譯器錯誤 C3370

'idl_module name':idl_module 尚未定義

您必須先使用 來指定 DLL 名稱,才能使用 idl_module idl_module 指定 DLL 中的進入點。

下列範例會產生 C3370:

// C3370.cpp
[module(name=MyLibrary)];
// uncomment the following line to resolve the error
// [idl_module(name="name1", dllname=x.dll)];
[idl_module(name="name1"), entry(100)] // C3370
int f1();

int main()
{
}