am I in DLL Hell? (whatever that means...)

I think I am in what is called "DLL Hell?"

situation: I had sw2008 installed on my laptop, and was developingcode using Visual Studio c#, where I added a reference to thesolidworks.interop.swdocumentmgr.dll.

my code is using the ISwDMDocument11 object, specifically itsmethod GetPreviewPNGBitmapBytes(). Everything was working great!

Then, for unrelated reasons, I had to uninstall sw2008 and installsw2007.

ever since then, my code doesn't work...I get this ugly error whenmy code tries to instantiate a ISwDMDocument11 object:

Unable to cast COM object of type 'System.__ComObject' to interfacetype 'SolidWorks.Interop.swdocumentmgr.ISwDMDocument11'. Thisoperation failed because the QueryInterface call on the COMcomponent for the interface with IID'{0245EA0B-3622-428B-A7A6-896B512DC2B9}' failed due to thefollowing error: No such interface supported (Exception fromHRESULT: 0x80004002 (E_NOINTERFACE)).


So, even though I did not change the reference in visual studio,I'm assuming that somehow, when my code runs, it is now using thedocument manager API that can with sw2007 - I say this because Idon't think sw2007 doc mgr api had the ISwDMDocument11 objectofferred.

Has anyone run into a situation like this, and can advise me?

thanks in advance for reading my longish message!

BarrySolidworksApi macros