Yes, I do it all the time. - basically, the "View" will not be attached to the derived object class of (CDocument). - the attached derived (CDocument) object is intended to update the View when the derived object changes.
P
ptse
@ptse
Posts
-
Creating View without document? -
Which among following statements c/c++ code is faster?Statement 2 should be faster. - no need to do parsing and comparison, just go to memory to negate, and see if it's above 0 or not. - compiler can generate machine code that would take less clock circles to execute the if() statement The speed differences between the 2 statements are negligible, - but statement 1 reads better, easier to understand and for better documentation.