几何尺寸与公差论坛

 找回密码
 注册
查看: 661|回复: 0

【转帖】am i in dll hell 9whatever that means...0

[复制链接]
发表于 2009-4-13 08:50:22 | 显示全部楼层 |阅读模式
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 developing code using visual studio c#, where i added a reference to the solidworks.interop.swdocumentmgr.dll.
my code is using the iswdmdocument11 object, specifically its method getpreviewpngbitmapbytes(). everything was working great!
then, for unrelated reasons, i had to uninstall sw2008 and install sw2007.
ever since then, my code doesn't work...i get this ugly error when my code tries to instantiate a iswdmdocument11 object:
unable to cast com object of type 'system.__comobject' to interface type 'solidworks.interop.swdocumentmgr.iswdmdocument11'. this operation failed because the queryinterface call on the com component for the interface with iid '{0245ea0b-3622-428b-a7a6-896b512dc2b9}' failed due to the following error: no such interface supported (exception from hresult: 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 the document manager api that can with sw2007 - i say this because i don't think sw2007 doc mgr api had the iswdmdocument11 object offerred.
has anyone run into a situation like this, and can advise me?
thanks in advance for reading my longish message!
barry
sounds like you are just missing the document manager dll from 2008 when you uninstalled it. either get your hands on the dll or re-reference your project to the 2007 version, or just try to remove/re-add the reference to see if that solves it
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 22:53 , Processed in 0.035182 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表