几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-12, 08:48 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】edrawings api problem

edrawings api problem
this should be simple enough to do. drag the control to the form, put together a filename string, and open it with the edrawing control. well, in my case it does not work.
here is the error message that i am getting:
an error occurred creating the form. see exception.innerexception for details. the error is: class not registered (exception from hresult: 0x80040154 (regdb_e_classnotreg))
details:
system.invalidoperationexception was unhandled
message="an error occurred creating the form. see exception.innerexception for details. the error is: class not registered (exception from hresult: 0x80040154 (regdb_e_classnotreg))"
source="edrawingsconsole"
stacktrace:
at edrawingsconsole.my.myproject.myforms.create__instance__[t](t instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190 at edrawingsconsole.my.myproject.myforms.get_edrawingsconsole() at edrawingsconsole.edrawingsconsole.main() in c:\program files (x86)\common files\edrawings2009\api\examples\sample1_edrawings_console\edrawingsconsole\main.vb:line 6 at system.appdomain._nexecuteassembly(assembly assembly, string[] args) at microsoft.visualstudio.hostingprocess.hostproc.runusersassembly() at system.threading.executioncontext.run(executioncontext executioncontext, contextcallback callback, object state) at system.threading.threadhelper.threadstart()
innerexception: system.runtime.interopservices.comexception
errorcode=-2147221164
message="class not registered (exception from hresult: 0x80040154 (regdb_e_classnotreg))"
source="system.windows.forms"
stacktrace:
at system.windows.forms.unsafenativemethods.cocreateinstance(guid& clsid, object punkouter, int32 context, guid& iid) at system.windows.forms.axhost.createwithoutlicense(guid clsid) at system.windows.forms.axhost.createwithlicense(string license, guid clsid) at system.windows.forms.axhost.createinstancecore(guid clsid) at system.windows.forms.axhost.createinstance() at system.windows.forms.axhost.getocxcreate() at system.windows.forms.axhost.transitionupto(int32 state) at system.windows.forms.axhost.createhandle() at system.windows.forms.control.createcontrol(boolean fignorevisible) at system.windows.forms.control.createcontrol(boolean fignorevisible) at system.windows.forms.axhost.endinit() at edrawingsconsole.edrawingsconsole.initializecomponent() in c:\program files (x86)\common files\edrawings2009\api\examples\sample1_edrawings_console\edrawingsconsole\main.vb:line 1090 at edrawingsconsole.edrawingsconsole..ctor() in c:\program files (x86)\common files\edrawings2009\api\examples\sample1_edrawings_console\edrawingsconsole\main.vb:line 15
innerexception:
is this thing not registered? i am not trying to make an add-in, just a stand alone exe. the edrawings sdk example doesn't work either. i believe it is something with my system.
any help is appreciated.
thanks in advance!
tony szuta
cswa, cswp, cswp-smtl
unregister and re-register edrawings with regsvr32, or try to repair the installation.
try
regsvr32 /u "c:\program files\common files\edrawings2008\emodelview.dll"
regsvr32 /i "c:\program files\common files\edrawings2008\emodelview.dll"
tried both options (unregister / re-register & repair installation) with no luck. i am using a 64 bit system here. my home system is 32 bit. it works fine on my home system.
tony szuta
cswa, cswp, cswp-smtl
do you have a 32bit program running in wow or a true 64bit program? and which edrawings do you have installed?
hey luke,
i have 2009 installed both at home and here at work. i have not dealt with programming very much before in a 64 bit environment. how can i tell if it is a 32bit running in wow or a true 64bit. my guess is it will be the first option.
thanks for your help luke.
tony szuta
cswa, cswp, cswp-smtl
open the solution explorer, select solution, right click->configuration manager.
go to 'active solution platform', click new.
in the 'new solution platform' dialog that comes up select x64 as the type
i must be doing something wrong. the solution explorer is open. when i right click the solution, i do not get that option. here is what i see
build solution
rebuild solution
clean solution
____________________
calculate code metrics
____________________
add >
____________________
set startup projects
____________________
code analysis settings
____________________
paste
rename
____________________
open folder in windows explorer
____________________
properties
i looked online on msdn. msdn stated that the configuration manager could also be accessed by clicking the build menu. no luck here either.
tony szuta
cswa, cswp, cswp-smtl
are you using an express edition? if so you need a standard or pro version i think
visual studio team system 2008. i never had an express version installed on this machine.
i just don't understand what the problem is... it should work...
tony szuta
cswa, cswp, cswp-smtl
answer well, i got it to run here. i set the advanced compile options target cpu to x86. as soon as i did this, it fired right up.
thanks for your help luke.
tony szuta
cswa, cswp, cswp-smtl
intel core2 quad (q6600 @ 2.40 ghz)
nvidia quadro fx 4600 sdi
solidworks 2008 sp 4.0 (x32 & x64)
solidworks 2009 sp 2.0 (x32 & x64)
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】solidworks 2008 api book - released yang686526 SolidWorks二次开发 0 2009-04-12 07:38 PM
【转帖】doc manager api requires presence of solidworks explorer yang686526 SolidWorks二次开发 0 2009-04-12 06:00 PM
【转帖】外挂开发中的封包技术 huangyhg vc编程 0 2007-12-03 04:41 PM
【转帖】对于hook函数的一点认识 huangyhg vc编程 0 2007-03-27 11:53 AM


所有的时间均为北京时间。 现在的时间是 01:15 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多