Did you look at the Windows Ocaf Sample? It answers most questions.
Commenter-1
Archived discussion
How can I view this aDoc??
STEPCAFControl_Reader reader;
IFSelect_ReturnStatus aStatus = reader.ReadFile("E:\\abc.stp");
Handle(TDocStd_Document) aDoc = new TDocStd_Document("MyStepDoc");
if (aStatus == IFSelect_RetDone)
{ Standard_Boolean aRes = reader.Transfer(aDoc); }
Discussion
Posts are displayed in their archived order.
Did you look at the Windows Ocaf Sample? It answers most questions.
Commenter-1