MIDL2020 : error generating type library

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:

midloleaut32.dll : error MIDL2020 : error generating type library : SaveAllChanges Failed : .spellcheck.tlb (0x80070005)

Here is the code that is generating the error:

//Creating the interface
import "unknwn.idl";

//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
library SpellcheckerLib
coclass CSpellChecker
interface ISpellChecker;


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion