Handle(TDocStd_Application) instantiation Problem

Hello,
Now I am trying to use the OCAF,but the OCAF Document (TDocStd_Document) must be created by OCAF Application(TDocStd_Application).
However, the TDocStd_Application can not be used directly, because of it's virtual property.
So How can I derive the TDocStd_Application class and use it?

Thanks so much!

Daniel Neander's picture

Hello,

Good examples of TDocStd_Application can be found in your sample directory.
samples/mfc/ocaf
and
samples/ocafsamples

Kind regards
Daniel Neander

mou_yq's picture

Thanks Daniel, I will look into these sample codes!