none
MIDL2020 : error generating type library RRS feed

  • Question

  • 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 code 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;
     }
    };

     

     

    • Edited by mcertini Sunday, May 30, 2010 3:03 PM To include program code that is generating the error.
    Sunday, May 30, 2010 5:24 AM

Answers

  • This compiles perfectly ok for me using Visual Studio 2010.

    I'm wondering if there is something unusual about your directory structure. Try opening your Visual Studio with administrator privileges (that is, right-click over the VS icon, and "Run as administrator".) Does this overcome the problem?

    This sounds like a very strange problem. 

    Sunday, May 30, 2010 4:29 PM

All replies

  • This compiles perfectly ok for me using Visual Studio 2010.

    I'm wondering if there is something unusual about your directory structure. Try opening your Visual Studio with administrator privileges (that is, right-click over the VS icon, and "Run as administrator".) Does this overcome the problem?

    This sounds like a very strange problem. 

    Sunday, May 30, 2010 4:29 PM
  • Excellent!

    Brian, thank you for the answer.  Now it compiles properly.

    Mike

    Sunday, May 30, 2010 5:24 PM