几何尺寸与公差论坛

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

【转帖】edrawings api problem

[复制链接]
发表于 2009-4-12 20:48:52 | 显示全部楼层 |阅读模式
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)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 05:46 , Processed in 0.037078 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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