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.