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

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】create bitmap preview gsbitmapdevice 9version 1.100 (http://www.dimcax.com/hust/showthread.php?t=15558)

yang686526 2009-05-04 06:42 PM

【转帖】create bitmap preview gsbitmapdevice 9version 1.100
 
create bitmap preview gsbitmapdevice (version 1.10)
create bitmap preview gsbitmapdevice (version 1.10)
i have lost some code i had, and can't find answer on forum
i had this:
code:
odgsdeviceptr cvertcheckapp::gsbitmapdevice()
{
odgsdeviceptr pdevice;
pdevice.attach( new odrxobjectimpl<exgsbitmapdevice<exgsgdidevice> > );
return pdevice;
}
but this won't compile with 1.10. i was told by sergey to change it and i can't remeber what to do
code:
//
pdevice =
exgsbitmapdevice<exgsgdidevice>::createobject();
//
sergey slezkin
thank you.
i now get one warning:
vertcheck.cpp
c:\dwgdirect\include\gs\gsbase.h(152) : warning c4541: 'dynamic_cast' used on polymorphic type 'class odgsview' with /gr-; unpredictable behavior may result
generating code...
and over a 1000 link errors:
eg:
exsystemservices.obj : error lnk2005: "public: __thiscall odexgirasterimage::odexgirasterimage(void)" (??0odexgirasterimage@@qae@xz) already defined in exgirasterimage.obj
exsystemservices.obj : error lnk2005: "public: virtual void __thiscall odexgirasterimage::size(unsigned long &,unsigned long &)const " (?size@odexgirasterimage@@ubexaak0@z) already defined in exgirasterimage.obj


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