Hello all,
I'm trying to compile a idl interface in VS2005 but that always get this error:
Error 1 error MIDL2025 : syntax error : expecting ] or , near "annotation" C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\unknwn.idl 108
Error 2 error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation C:\Program Files\Microsoft SDKs\Windows\v6.0\Include\unknwn.idl 108
Anybody have idea about what could be wrong
Thanks!
Pamella
Here is the source code:
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(1510723C-5F70-4926-AB87-DC5BD8563721),
dual,
helpstring("IMusicStorePlugin interface"),
pointer_default(unique)
]
interface IMusicStorePlugin : IDispatch
{
[id(1), helpstring("Revokes all licenses")] HRESULT revokeAll();
};
[
uuid(1510723C-5F70-4926-AB87-DC5BD8563721),
version(1.0),
helpstring("MusicStorePlugin 1.0 Type Library")
]
library MusicStoreLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(1510723C-5F70-4926-AB87-DC5BD8563721),
helpstring("MusicStorePlugin Class")
]
coclass MusicStorePluginClass
{
[default] interface IMusicStorePlugin;
};
};