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


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


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

batter faq/getting started somewhere?
batter faq/getting started somewhere?
i am totally new to cad, so everything here looks like a foreign language, add the fact there are no .sln files w/ the .net version and no .dsw files with the vc6 version of the examples, and determining dependencies has become a chore, so just seeing how to use the library is turning out to be a pain as well. for example, just trying the simple mfc sample, needs excustomobjects if memory serves, which needs exportbitmap, which has no project file with it, and is riddled with dependencies. i can't even find a library with the symbol oddbsystemsomething in it.
all i really want to do is extract geometry data to use in physics processing. so if there is a basic faq on the structure of cad files (layers, entities, "objects" etc explained) and some help with maybe a dependency tree, thatd be great. anyone?
edit: just tried the simple thing and looked to see if there was a lib for bmp export, and there it was, so i added it and now have the project linked, so off i go, but still cad info, would certainly be welcome still
edit again: still working here, what i linked was the customobjects, so i built about 4 more projects, and now get:
odamfcapp.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_windirectxmodule(char const *)" (?odrxcreatemoduleobject_for_windirectxmodule@@yap avodrxmodule@@pbd@z)
odamfcapp.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_excustobjsmodule(char const *)" (?odrxcreatemoduleobject_for_excustobjsmodule@@yap avodrxmodule@@pbd@z)
../../../../../exe/vc2003/debug/odamfcapp.exe : fatal error lnk1120: 2 unresolved externals
so what library do i add....maybe i'll just write a script to dumpbin /exports on all the libs....
last edit for the night: i wrote a rudimentary file searcher using memorymapped io, which byte by byte searches for the string of the missing export listed, and turned up nothing, the only file that has it is rxdynamicmodule.h so what do i need to build to get the lib for this?
thanks!
corry
thanks
corry
last edited by corry; 26th april 2005 at 09:13 pmfff">.
project files are in "projectfiles" directory
corry,
i have to agree with you. the project structures implemented for the samples are overly complex, especially if you are new to the library. having said that, they do work, and server well to illustrate various techniques to achieve desired results.
regards,
sijmen.
sorry for not checking here in a while, work got a little busy/stressfull, and made me not want to look at a computer when i got home anyways...
project files arent workspaces, which is where visual studio stores its dependencies. furthermore, i rememember at least one project was missing a lib file that had to be manually added, as well as the one i still havent recieved an answer on.
i do believe that these work, i just need the proper libs i had planned on searching some more, and make sure visual studio was interpreting my pointer arithmetic properly...but i had some networking difficulties (stupid xp sp2 firewall) so i just got access to my devel box from my laptop, and its 2:40 am, so i guess i'll just ask again if anyone knows which lib is missing, please post. otherwise maybe i'll get to this tomorrow
edit: i now managed to find the windirectx one, should use the one that is not _dll....seems odd but, ok! still cant figure out the odrxmodule one. this seems like it has to be one of the base libs, and not one of the examples. so i tried a search for the exact function, nothing, then just odrxcreatemoduleobject tons of hits, try adding _for still 3 or 4 libs, try adding _ex one lib, add it, nothing. can anyone tell me whats going on here? i'm using the multithreaded debug version (mdd)
thanks
corry
last edited by corry; 15th may 2005 at 08:58 amfff">.
the project file for the odamfcapp dll version lies here:
\projectfiles\win32\msvc2003\examples\odamfcappdll \
dll version needs not solution file - generated solution works fine.
at the start (and generally, i think), it is easier to use dll version.
you are linking lib version, which really needs solution file, which is not included/created. it is bug, and we are sorry for it. perhaps this will be fixed in the update.
odamfcapp lib version depends on the following sample projects:
excustobjs
exevalwatchers
exraster
grippoints
gs_wingdi
gs_winopegl
odbagfiler
oleitemhandler
windirectx
anyway, i recommend using dll version instead
vladimir
last edited by vkalinin; 16th may 2005 at 06:06 amfff">.
ah, there we go, when i saw mfc and dll i just assumed it was for an mfc extension dll somehow, and said to myself, thats too much work to build the extension dll, then an app to use it lol.
the way i learn best is immersion, jump right in and try to figure out whats going on, so i figured this says its a windows mfc app. i have done a far amount with mfc so i should be able to follow the basic program structure, which should lead me to an understanding of how some of the library works (hopefully getting the geometry data anyways )
so now as soon as i copy the dlls to the right location, or put their location in my path, i'll be off.
thanks, i'm sure i'll have some slightly less beginner questions in here soon enough
corry
actually, i cant seem to find a dll, dd_alloc.dll doesnt seem to be a project i can even build, i did see 2 libs in lib\vc2003md and lib\vc2003mdd
any hints?
thanks
corry
vc2003 stands for visual c++ 2003
md for multithreaded dll crt
d for debug
do you mean that you downloaded dd, open ".\projectfiles\win32\msvc2003\examples\odamfcappd ll\odamfcappdll.vcproj", build it and it does not link?
vladimir
no, it linked, and when it tried to run it said it could not find dd_alloc.dll. i specified the build type mainly as info for testing and repeating the problem. i know the naming conventions, as you have used the same as mfc, crt, etc.
again, sorry for taking a while to get back here, i dont have a lot of spare time to dedicate to this, throw the fact that i program 8 hours a day for work on top of it, and most times i just dont feel like looking at the screen when i do have spare time
thanks
corry
maybe you tried to build "releasewithdebuginfo" configuration? (it is not easy to use that). if not, check where application is linked to.
it should link to ./exe/vc2003/debug (or 'release')
in that place should reside all prebuilt dd libraries.
vladimir
well, i dont know how i did it, but i didnt have either dd_vc2003.zip nor dd_vc2003dbg.zip upzipped! when you said they should be prebuilt there i went looking, and there it was. i ran the app this time, so i know its working, so now to generate some simple dwg files in autocad and see if i cant figure out how to pull out the information i need to write my program
thanks
corry
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
i'm just getting started in trying to understand on-machine verification and would li huangyhg PC-DMIS 0 2009-04-06 08:51 PM
【转帖】getting started in vb for your c dmis - age 3 - c-dmis user forum.txt huangyhg PC-DMIS 0 2009-04-06 07:34 PM
【转帖】getting started - c-dmis user forum.txt huangyhg PC-DMIS 0 2009-04-06 07:33 PM


所有的时间均为北京时间。 现在的时间是 08:20 AM.


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