几何尺寸与公差论坛------致力于产品几何量公差标准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, 05:41 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】certain files cant be located

certain files can't be located
certain files can't be located
hello
i am trying to upgrade an application to work with 2.5.1 and i am examining my dsp file in a text editor. my other application is now compiling ok but this application seems to refer to additional files:
..\..\dwgdirect110\exservices\exgienhancedmetafile .cpp
..\..\dwgdirect110\exrender\exgsgdidevice.cpp
..\..\dwgdirect110\exservices\exodstorage.cpp
i appreciate this is a big leap, but my 1.14 application did not have these problems when migrating. i have tried to locate these files or comments about them in the forum / chm file but nothing came up.
can some one clarify how this aspect in dwgdirect has changed? hat are the new files to include and direct me to the right help topics for any code changes i might have to make? thank you.
update:
i located this information in the 1.14 help file:
"exgienhancedmetafile.cpp and exodstorage.cpp in examples/exservices/ are no longer needed in client applications. these source files should be removed from client projects. ole support is now available in a separate library/dll (see below), and metafile support has been incorporated into the windows gdi and opengl devices. "
so i removed the two cpp files. i also removed the other cpp file but it has ramifications. now my application doesn't compile. i get these build errors to begin with:
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(235) : error c2146: syntax error : missing ';' before identifier 'getdevicepalette'
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(393) : see reference to class template instantiation 'exgsbitmapdevice<t>' being compiled
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(235) : error c2501: 'odgspalette' : missing storage-class or type specifiers
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(393) : see reference to class template instantiation 'exgsbitmapdevice<t>' being compiled
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(238) : warning c4183: 'getdevicepalette': member function definition looks like a ctor, but name does not match enclosing class
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(393) : see reference to class template instantiation 'exgsbitmapdevice<t>' being compiled
c:\my programs\seq2dwg dwg direct 251\seq2dwg.cpp(8) : fatal error c1083: cannot open include file: 'exgsgdidevice.h': no such file or directory
last edited by andrew.truckle@cartosurveys.co.uk; 5th february 2008 at 11:15 pmfff">.
another update
i removed some headers and code from my application:
// this will generate a bitmap preview for us using dwg direct.
odgsdeviceptr cseq2dwgapp::gsbitmapdevice()
{
odgsdeviceptr pdevice;
pdevice = exgsbitmapdevice<exgsgdidevice>::createobject();
return pdevice;
}
now it compiles, but ofcourse i now don't have this bitmap preview code anymore. please advise what libraries/headers/code i require to support this with 2.5.1. thank you.
look at codamfcappapp::gsbitmapdevice().
it uses odgsmodule::createbitmapdevice()
sergey slezkin
yes, i noticed that. i did get further by looking at odwriteex ....
but i can't get it compile.
what do i need for this method being present to compile? i added a #include for <gs.h> what else? at the moment i get thes ecompile errors:
--------------------configuration: seq2dwg - win32 debug--------------------
linking...
exgswin32device.obj : error lnk2001: unresolved external symbol "public: __thiscall odcommondeviceprops:dcommondeviceprops(void)" (??0odcommondeviceprops@@qae@xz)
exgswin32device.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odcommondeviceprops::generatepropmap(class odrxdictionary *)const " (?generatepropmap@odcommondeviceprops@@ubexpavodrx dictionary@@@z)
exgswin32device.obj : error lnk2001: unresolved external symbol "public: virtual __thiscall odcommondeviceprops::~odcommondeviceprops(void)" (??1odcommondeviceprops@@uae@xz)
debug/seq2dwg.exe : fatal error lnk1120: 3 unresolved externals
error executing link.exe.
seq2dwg.exe - 4 error(s), 0 warning(s)
last edited by andrew.truckle@cartosurveys.co.uk; 6th february 2008 at 04:58 amfff">.
i was missing the gs_wingdi.lib file in my debug project. now it compiles.
but it won't let me debug and says that jit needs to be enabled?
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】proccessing multiple files with api yang686526 SolidWorks二次开发 0 2009-04-13 01:38 PM
【转帖】importing multiple sat files into one assembly yang686526 SolidWorks二次开发 0 2009-04-13 12:12 PM
【转帖】how to import proe drw.1 files into solidworks yang686526 SolidWorks二次开发 0 2009-04-13 12:00 PM
【转帖】bulk change descriptions for files in the vaul yang686526 SolidWorks二次开发 0 2009-04-13 09:23 AM


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


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