MIDL2020 : error generating type library [modified]
-
Can someone help me with this error? I am compiling an IDL file and am getting an MIDL2020 error. This error is defined as "General access denied error". I am working on a Windows Vista machine and have searched for a solution but cannot find anything that solves this. Any suggestions would be greatly appreciated. Below is the complete compilation error: midl\oleaut32.dll : error MIDL2020 : error generating type library : SaveAllChanges Failed : .\spellcheck.tlb (0x80070005) Here is the program: //Creating the interface import "unknwn.idl"; [object,uuid(C73BA5B4-B466-4348-8CC2-E6B48998B3F7)] //Defining the interface interface ISpellChecker : IUnknown { HRESULT CheckSpelling([in,string] char *word,[out,retval] BOOL *isCorrect); HRESULT UseCustomDictionary([in,string] char *filename); } //Define type library [uuid(C81C9C52-008B-429d-8533-262E90A1D0D5)] library SpellcheckerLib { [uuid(57B7A8A0-E4D7-11d0-818D-444553540000)] coclass CSpellChecker { interface ISpellChecker; } };
modified on Sunday, May 30, 2010 10:46 AM
-
Can someone help me with this error? I am compiling an IDL file and am getting an MIDL2020 error. This error is defined as "General access denied error". I am working on a Windows Vista machine and have searched for a solution but cannot find anything that solves this. Any suggestions would be greatly appreciated. Below is the complete compilation error: midl\oleaut32.dll : error MIDL2020 : error generating type library : SaveAllChanges Failed : .\spellcheck.tlb (0x80070005) Here is the program: //Creating the interface import "unknwn.idl"; [object,uuid(C73BA5B4-B466-4348-8CC2-E6B48998B3F7)] //Defining the interface interface ISpellChecker : IUnknown { HRESULT CheckSpelling([in,string] char *word,[out,retval] BOOL *isCorrect); HRESULT UseCustomDictionary([in,string] char *filename); } //Define type library [uuid(C81C9C52-008B-429d-8533-262E90A1D0D5)] library SpellcheckerLib { [uuid(57B7A8A0-E4D7-11d0-818D-444553540000)] coclass CSpellChecker { interface ISpellChecker; } };
modified on Sunday, May 30, 2010 10:46 AM
I obtained the answer for this on another board. Basically, the problem is that I did not sign-on as administrator on my Visual Studio program.