查看单个帖子
旧 2009-05-07, 06:49 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】what Is Required Before Calling Setupactivelayoutviews

what is required before calling setupactivelayoutviews
what is required before calling setupactivelayoutviews
i am working on a mfc function that creates a bitmap file from a viewed drawing. i have examined cdwgviewer:reparebitmap( ... ) in the odamfcapp sample project. my function is a member of a class derived from cview and odgicontextfordbdatabase just as in the example program. when i try to execute the following instruction-
pdevice = oddbgsmanager::setupactivelayoutviews(pdevice, this);
i get an exception. i believe that the pdevice argument is valid. (i created it with the same code as in the example.) i suspect that i must initialize something in the odgicontextfordbdatabase part of my class.
can anyone tell me what the requirements are before calling the above function or where to look for the answer?
problem solved.
as it turns out the problem was a invalid device pointer.
thank anyway to anyone who spent time thinking about this.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)