error MIDL2020 : error generating type library

I am working with someone else's C++ program that generates a DLL.  When I try to run it I get the follow error:

error MIDL2020 : error generating type library : SaveAllChanges Failed

Does anyone know what this means?
axnst2IT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

axnst2IT ManagerAuthor Commented:
Here is the whole error message:

midl\oleaut32.dll : error MIDL2020 : error generating type library : SaveAllChanges Failed : .\../bin/DNCLIB.tlb
Error executing midl.exe.

Any help would be greatly appreciated,

Thanks,

axnst2
axnst2IT ManagerAuthor Commented:
o.k. seriously here is the whole thing:

Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\msxml.idl
msxml.idl
midl\oleaut32.dll : error MIDL2020 : error generating type library : SaveAllChanges Failed : .\../bin/DNCLIB.tlb
Error executing midl.exe.
axnst2IT ManagerAuthor Commented:
Creating Type Library...
Microsoft (R) MIDL Compiler Version 5.01.0164  
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
Processing C:\04099 (Riverside)\Butler\dnc\DNCLIB.IDL
DNCLIB.IDL
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\oaidl.idl
oaidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\objidl.idl
objidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.idl
unknwn.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\wtypes.idl
wtypes.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ocidl.idl
ocidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\oleidl.idl
oleidl.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\servprov.idl
servprov.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\urlmon.idl
urlmon.idl
Processing C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\msxml.idl
msxml.idl
midl\oleaut32.dll : error MIDL2020 : error generating type library : SaveAllChanges Failed : .\../bin/DNCLIB.tlb
Error executing midl.exe.

bossdnc.dll - 1 error(s), 0 warning(s)
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

grg99Commented:
See if any of the files are currently in use, or open in some browser window.

   You might have to reboot your computer to ensure they are free.

jkrCommented:
Have you added some methods since compiling it the last time) This could be an ID collision - see e.g. http://msdn.microsoft.com/library/default.asp?url=/archive/en-us/dnarguion/html/msdn_093098.asp

------------------------------------------------------->8---------------------------------------------

Adding methods is the same as before with one gotcha: Visual Studio doesn't pay attention to the fact that IFoo2 is inherited from IFoo, so it will, by default, generate a dispatch ID of 1. You can change this as you declare the method by clicking the Attributes button in the wizard, or you can change the IDL by hand later. If you don't change it, you'll get the following incredibly helpful error message:

midl\oleaut32.dll : error MIDL2020 : error generating type library :
AddImplType failed : MultiInterface

Nice, huh? As soon as you avoid ID collision by changing Func3's ID to something other than 1 or 2, the error will go away.

------------------------------------------------------->8---------------------------------------------
axnst2IT ManagerAuthor Commented:
Unfortunatelly that wasn't it. I rebooted and still getting the same error
axnst2IT ManagerAuthor Commented:
Also, unfortunatelly, for me it is the SaveAllChanges method that fails and not the AddImplType method.  Thanks though jkr.
jkrCommented:
Is either the .tlb file or any other involved files set to 'read-only' or is any path longer than 126 characters? That's what the USENET archives suggest regarding that problem.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jkrCommented:
BTW, here's an excerpt from the no longer existing Microsoft Knowledge Base article Q165687:

  MIDL2020: error generating type library: save all changes failed

  This error can result if the path to the .IDL file is longer than
  126 characters, which is because oleaut32.dll does not currently
  support path names that are greater than 126 characters. The
  workaround is to reduce the path to the .IDL file so that it is
  less than 126 characters.
axnst2IT ManagerAuthor Commented:
jkr you are a life saver and I am retarded.  SourceSafe had all my files locked up becasue I didn't check them out.   I can't believe I didn't think of that.

Thanks my friend!
jkrCommented:
You're most welcome :o)
aossdevCommented:
Also check if that  DNCLIB.tlb exist in the directory because of previous builds. Just delete it and build it again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.