N
NATASHA
Unregistered / Unconfirmed
GUEST, unregistred user!
MIDL编译下面文件出错
Error MIDL2088:[uuid] format is incorrect
warning MIDL2214:semantic check incomplete due to previous errors
//文件如下:
import "objidl.idl";
[
uuid(411C7D02-58ED-4735-932C-5575189AA29A),
version(1.0)
]
typedef struct tagTDetailedZodiacSign
{
BSTR Sign;
long House;
BSTR Element;
BSTR Planet;
BSTR Details;
BSTR Advice;
} TDetailedZodiacSign;
[
uuid(540B0492-4376-4121-8653-BD4AF770576F),
version(1.0)
]
interface IDetailedZodiac: IUnknown
{
[
id(0x00000002)
]
HRESULT _stdcall GetDetailedZodiacSignAsync([in] long Day, [in] long Month );
[
id(0x00000003)
]
HRESULT _stdcall GetDetailedZodiacSign([in] long Day, [in] long Month, [out] TDetailedZodiacSign * DetailedSign);
};
[
uuid(E39FAF0E-14AB-4261-9DA0-49A27DEC1E09),
version(1.0)
]
interface IDetailedZodiacEvents: IUnknown
{
[
id(0x00000002)
]
HRESULT _stdcall OnDetailedZodiacSignReady([in] TDetailedZodiacSign * DetailedSign);
};
Error MIDL2088:[uuid] format is incorrect
warning MIDL2214:semantic check incomplete due to previous errors
//文件如下:
import "objidl.idl";
[
uuid(411C7D02-58ED-4735-932C-5575189AA29A),
version(1.0)
]
typedef struct tagTDetailedZodiacSign
{
BSTR Sign;
long House;
BSTR Element;
BSTR Planet;
BSTR Details;
BSTR Advice;
} TDetailedZodiacSign;
[
uuid(540B0492-4376-4121-8653-BD4AF770576F),
version(1.0)
]
interface IDetailedZodiac: IUnknown
{
[
id(0x00000002)
]
HRESULT _stdcall GetDetailedZodiacSignAsync([in] long Day, [in] long Month );
[
id(0x00000003)
]
HRESULT _stdcall GetDetailedZodiacSign([in] long Day, [in] long Month, [out] TDetailedZodiacSign * DetailedSign);
};
[
uuid(E39FAF0E-14AB-4261-9DA0-49A27DEC1E09),
version(1.0)
]
interface IDetailedZodiacEvents: IUnknown
{
[
id(0x00000002)
]
HRESULT _stdcall OnDetailedZodiacSignReady([in] TDetailedZodiacSign * DetailedSign);
};