创建atl工程后,添加接口IA,之后手动为IA添加module(目的是添加命名空间)module Aspace

[
object,
uuid(868A7D1F-A7AE-442C-A22A-A5201155043B),
dual,
nonextensible,
helpstring("IAInterface"),
pointer_default(unique)
]
interface IA: IDispatch{
[id(1), helpstring("method sde")] HRESULT sde(void);
}
};[
uuid(8336132E-5829-4E34-9C96-8E4C442F6310),
version(1.0),
helpstring("testnamespace 1.0 Type Library")
]
library testnamespaceLib
{
importlib("stdole2.tlb");
[
uuid(4232D0F9-D547-42D2-AF71-9A892A32A7E6),
helpstring("A Class")
]
coclass A
{
[default] interface IA;
};};
编译idl总报错:error MIDL2025 : syntax error : expecting a type specification near "interface"不知道什么原因这样。我想给某些接口添加命名空间的。
谢谢