Howdy, Stranger!

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

Categories

MIDL2020 : error generating type library

ForexsurfrForexsurfr Member Posts: 10
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";
[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;
}
};



Comments

Sign In or Register to comment.