各位大侠帮忙!!在这里谢谢了

high_deep 2002-05-17 10:21:03
在我编译这段代码时提示错误,msdn也看了,没发现错呀!请大家帮忙!编译提示错误下面有。
// VOD控件.idl : IDL source for VOD控件.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (VOD控件.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"


[
object,
uuid(6A441A55-85E1-461F-9B14-A2797CE8A083),
dual,
helpstring("IVOD_Client Interface"),
pointer_default(unique)
]
interface IVOD_Client : IDispatch
{
[propput, id(DISPID_AUTOSIZE)]
HRESULT AutoSize([in]VARIANT_BOOL vbool);
[propget, id(DISPID_AUTOSIZE)]
HRESULT AutoSize([out,retval]VARIANT_BOOL* pbool);
[propput, id(DISPID_BACKCOLOR)]
HRESULT BackColor([in]OLE_COLOR clr);
[propget, id(DISPID_BACKCOLOR)]
HRESULT BackColor([out,retval]OLE_COLOR* pclr);
[propput, id(DISPID_BACKSTYLE)]
HRESULT BackStyle([in]long style);
[propget, id(DISPID_BACKSTYLE)]
HRESULT BackStyle([out,retval]long* pstyle);
[propput, id(DISPID_BORDERCOLOR)]
HRESULT BorderColor([in]OLE_COLOR clr);
[propget, id(DISPID_BORDERCOLOR)]
HRESULT BorderColor([out, retval]OLE_COLOR* pclr);
[propput, id(DISPID_BORDERSTYLE)]
HRESULT BorderStyle([in]long style);
[propget, id(DISPID_BORDERSTYLE)]
HRESULT BorderStyle([out, retval]long* pstyle);
[propput, id(DISPID_BORDERWIDTH)]
HRESULT BorderWidth([in]long width);
[propget, id(DISPID_BORDERWIDTH)]
HRESULT BorderWidth([out, retval]long* width);
[propput, id(DISPID_DRAWMODE)]
HRESULT DrawMode([in]long mode);
[propget, id(DISPID_DRAWMODE)]
HRESULT DrawMode([out, retval]long* pmode);
[propput, id(DISPID_DRAWSTYLE)]
HRESULT DrawStyle([in]long style);
[propget, id(DISPID_DRAWSTYLE)]
HRESULT DrawStyle([out, retval]long* pstyle);
[propput, id(DISPID_DRAWWIDTH)]
HRESULT DrawWidth([in]long width);
[propget, id(DISPID_DRAWWIDTH)]
HRESULT DrawWidth([out, retval]long* pwidth);
[propput, id(DISPID_FILLCOLOR)]
HRESULT FillColor([in]OLE_COLOR clr);
[propget, id(DISPID_FILLCOLOR)]
HRESULT FillColor([out, retval]OLE_COLOR* pclr);
[propput, id(DISPID_FILLSTYLE)]
HRESULT FillStyle([in]long style);
[propget, id(DISPID_FILLSTYLE)]
HRESULT FillStyle([out, retval]long* pstyle);
[propputref, id(DISPID_FONT)]
HRESULT Font([in]IFontDisp* pFont);
[propput, id(DISPID_FONT)]
HRESULT Font([in]IFontDisp* pFont);
[propget, id(DISPID_FONT)]
HRESULT Font([out, retval]IFontDisp** ppFont);
[propput, id(DISPID_FORECOLOR)]
HRESULT ForeColor([in]OLE_COLOR clr);
[propget, id(DISPID_FORECOLOR)]
HRESULT ForeColor([out,retval]OLE_COLOR* pclr);
[propput, id(DISPID_ENABLED)]
HRESULT Enabled([in]VARIANT_BOOL vbool);
[propget, id(DISPID_ENABLED)]
HRESULT Enabled([out,retval]VARIANT_BOOL* pbool);
[propget, id(DISPID_HWND)]
HRESULT Window([out, retval]long* phwnd);
[propput, id(DISPID_TABSTOP)]
HRESULT TabStop([in]VARIANT_BOOL vbool);
[propget, id(DISPID_TABSTOP)]
HRESULT TabStop([out, retval]VARIANT_BOOL* pbool);
[propput, id(DISPID_TEXT)]
HRESULT Text([in]BSTR strText);
[propget, id(DISPID_TEXT)]
HRESULT Text([out, retval]BSTR* pstrText);
[propput, id(DISPID_CAPTION)]
HRESULT Caption([in]BSTR strCaption);
[propget, id(DISPID_CAPTION)]
HRESULT Caption([out,retval]BSTR* pstrCaption);
[propput, id(DISPID_BORDERVISIBLE)]
HRESULT BorderVisible([in]VARIANT_BOOL vbool);
[propget, id(DISPID_BORDERVISIBLE)]
HRESULT BorderVisible([out, retval]VARIANT_BOOL* pbool);
[propput, id(DISPID_APPEARANCE)]
HRESULT Appearance([in]short appearance);
[propget, id(DISPID_APPEARANCE)]
HRESULT Appearance([out, retval]short* pappearance);
[propput, id(DISPID_MOUSEPOINTER)]
HRESULT MousePointer([in]long pointer);
[propget, id(DISPID_MOUSEPOINTER)]
HRESULT MousePointer([out, retval]long* ppointer);
[propputref, id(DISPID_MOUSEICON)]
HRESULT MouseIcon([in]IPictureDisp* pMouseIcon);
[propput, id(DISPID_MOUSEICON)]
HRESULT MouseIcon([in]IPictureDisp* pMouseIcon);
[propget, id(DISPID_MOUSEICON)]
HRESULT MouseIcon([out, retval]IPictureDisp** ppMouseIcon);
[propputref, id(DISPID_PICTURE)]
HRESULT Picture([in]IPictureDisp* pPicture);
[propput, id(DISPID_PICTURE)]
HRESULT Picture([in]IPictureDisp* pPicture);
[propget, id(DISPID_PICTURE)]
HRESULT Picture([out, retval]IPictureDisp** ppPicture);
[propput, id(DISPID_VALID)]
HRESULT Valid([in]VARIANT_BOOL vbool);
[propget, id(DISPID_VALID)]
HRESULT Valid([out, retval]VARIANT_BOOL* pbool);

[id(2), helpstring("method NetLogOn")] HRESULT NetLogOn();
[id(3), helpstring("method NetLogOut")] HRESULT NetLogOut();
[id(4), helpstring("method Pause")] HRESULT Pause();
[id(5), helpstring("method Play")] HRESULT Play();
[id(6), helpstring("method Stop")] HRESULT Stop();
[id(7), helpstring("method Forward")] HRESULT Forward();
[propget, id(8), helpstring("property List_Received")] HRESULT List_Received([out, retval] BOOL *pVal);
[propput, id(8), helpstring("property List_Received")] HRESULT List_Received([in] BOOL newVal);
[propget, id(9), helpstring("property ListName")] HRESULT ListName([out, retval] BSTR *pVal);
[propput, id(9), helpstring("property ListName")] HRESULT ListName([in] BSTR newVal);
[propget, id(10), helpstring("property Servername")] HRESULT Servername([out, retval] BSTR *pVal);
[propput, id(10), helpstring("property Servername")] HRESULT Servername([in] BSTR newVal);
[id(11), helpstring("method MovieStart")] HRESULT MovieStart();


[
uuid(61D27944-C26A-4E07-BD3E-CEFD5DE6D713),
helpstring("VOD控件 1.0 Type Library"),
version(1.0)]
(line:141)library VODLib
{
(line:143)importlib("stdole32.tlb");
importlib("stdole2.tlb");

[
uuid(D996688D-403F-4B51-91E7-1FD70818F86A),
helpstring("_IVOD_ClientEvents Interface")
]
dispinterface _IVOD_ClientEvents
{
properties:
methods:
};

[
uuid(337001CB-D1D0-42EA-949A-9542A3D150C3),
helpstring("VOD_Client Class")
]
coclass VOD_Client
{
[default] interface IVOD_Client;
[default, source] dispinterface _IVOD_ClientEvents;
};
};
编译错误:


:\my works\第七章 开发实例\CLIENT\VOD控件.idl(141) : error MIDL2025 : syntax error : expecting a type specification near "library"
D:\my works\第七章 开发实例\CLIENT\VOD控件.idl(143) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation
Error executing midl.exe.

VOD控件.dll - 2 error(s), 0 warning(s)

错误地点我标上了行数
请大家帮忙看看!怎末回事?怎末解决?
谢谢!!!

...全文
50 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧