import "oaidl.idl";
import "ocidl.idl";[
object,
uuid(464adae8-6c3f-4c17-9a79-46c5221daba6),
dual,
helpstring("IATLConPropertyVisitor Interface"),
pointer_default(unique)
]interface IATLConPropertyVisitor : IDispatch
{
[propput, helpstring("Set the interface to browse")]
HRESULT Dispatch([in]IDispatch* pDispatch);
[propget, helpstring("Get the interface being browsed")]
HRESULT Dispatch([out,retval]IDispatch** ppDispatch);
};[
uuid(b5265b2a-509b-456c-b968-cf14a51cb142),
version(1.0),
helpstring("ATLContainer 1.0 Type Library")
]
library ATLCONTAINERLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb"); [
uuid(b04f638e-5836-415e-90e4-25ae70efc06a),
helpstring("ATLConPropertyVisitor Class")
]
coclass ATLConPropertyVisitor
{
[default] interface IATLConPropertyVisitor;
};
};error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode : [ Interface 'IATLConPropertyVisitor' ]
error MIDL2096 : duplicated attribute : [helpstring] [ Interface 'IATLConPropertyVisitor' ]
error MIDL2096 : duplicated attribute : [uuid] [ Interface 'IATLConPropertyVisitor' ]
Error executing midl.exe.
import "ocidl.idl";[
object,
uuid(464adae8-6c3f-4c17-9a79-46c5221daba6),
dual,
helpstring("IATLConPropertyVisitor Interface"),
pointer_default(unique)
]interface IATLConPropertyVisitor : IDispatch
{
[propput, helpstring("Set the interface to browse")]
HRESULT Dispatch([in]IDispatch* pDispatch);
[propget, helpstring("Get the interface being browsed")]
HRESULT Dispatch([out,retval]IDispatch** ppDispatch);
};[
uuid(b5265b2a-509b-456c-b968-cf14a51cb142),
version(1.0),
helpstring("ATLContainer 1.0 Type Library")
]
library ATLCONTAINERLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb"); [
uuid(b04f638e-5836-415e-90e4-25ae70efc06a),
helpstring("ATLConPropertyVisitor Class")
]
coclass ATLConPropertyVisitor
{
[default] interface IATLConPropertyVisitor;
};
};error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode : [ Interface 'IATLConPropertyVisitor' ]
error MIDL2096 : duplicated attribute : [helpstring] [ Interface 'IATLConPropertyVisitor' ]
error MIDL2096 : duplicated attribute : [uuid] [ Interface 'IATLConPropertyVisitor' ]
Error executing midl.exe.
解决方案 »
- 如何动态替换CSplitterWnd类的某一个视图?
- 读写进程内存空间问题,有几句代码看不明白。(最后10分了!)
- 再问一个send数据包的问题
- _tcschr的详细用法 在线等
- 一个数据库的问题,急!急!
- 我用GetWindowRect取得控件位置,再MoveWindow为什么会不对
- 图形界面???
- 请问vc下如何把CSTRING型转换成FLOAT型,有没有可以直接调用的函数????
- 请教:用Splitter分割了二个窗口,怎样从一个窗口调用另外一个窗口的成员函数
- 展开CTreeView控件后,需要在子项item左边加上复选框,不知怎么设置,高手指点一下吧!
- 在vc++中怎么样给一个.exe文件做个好看的图标。
- PostMessage的小问题
object,
uuid(464adae8-6c3f-4c17-9a79-46c5221daba6),
dual,
helpstring("IATLConPropertyVisitor Interface"),
pointer_default(unique)
]interface IATLConPropertyVisitor : IDispatch
{
[propput, helpstring("Set the interface to browse")]
HRESULT Dispatch([in]IDispatch* pDispatch);
[propget, helpstring("Get the interface being browsed")]
HRESULT Dispatch([out,retval]IDispatch** ppDispatch);
};把上面的部分放到 library ATLCONTAINERLib 里面来试试。