几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem with viewki (http://www.dimcax.com/hust/showthread.php?t=18184)

yang686526 2009-05-06 11:40 PM

【转帖】problem with viewki
 
problem with viewkit
problem with viewkit
hi,
i have problems to get my (simple) app (bb6) working.
if i call
"m_pdevice = oddbgsmanager::setupactivelayoutviews(pdevice, m_pdrawingcontext);"
from my code (in attachment), the app crashes here <1>, (wingdi.gs) because of the
m_pmodeltoeyeproc pointer is null,
can anyone see an error?
exgdivectorizeview::exgdivectorizeview()
{
m_pviewportclip = odgiorthoclipper::createobject();
odgedoublearray devs(5,1);
devs.insert(devs.end(), 5, .5);
m_pviewportclip->setdeviation(devs);
m_pviewportclip->input().addsourcenode(output());
// here we don't know if it is perspective view, so
// xform is created in any case
m_pperspxform = odgixform::createobject();
m_pperspprepr = odgiperspectivepreprocessor::createobject();
<1>
m_pperspprepr->setdeviation(&m_pmodeltoeyeproc->eyedeviation());
m_pworld2devxform = odgixform::createobject();
m_pworld2devxform->input().addsourcenode(m_worldentrypoint);
m_pviewportclip->input().addsourcenode(m_pworld2devxform->output());
m_pcurmetafile = 0;
m_phlr = odgihlremover::createobject();
m_phlr->setdeviation(devs); // always dc deviation
}
attached files
sorry, my error
"treat enum as int", was'nt set in the gdi driver!


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