Put a TreeNode into a binary storage in an origin obeject.
bool tree_put_binary_storage( TreeNode & trn, OriginObject & ObjTarget, LPCSTR lpcszName )
true for success, false for error
EX1
void tree_put_binary_storage_Ex1( ) { string strStorageName = "SomeJunk" ; Page pg = Project.Pages(-1); // get active page if(pg) { Tree tr; tr.Company.strVal = "ACME Corp"; tr.operator.strVal = "Joe Smith"; tr.DAQ.start.dVal = 0; tr.DAQ.stop.dVal = 0.5; tree_put_binary_storage(tr, pg, strStorageName); Tree trTest; tree_get_binary_storage(trTest,pg,strStorageName); // to get binary info that just put to page to check out_tree(trTest); } else printf("No active page in this Project\n"); }
tree_get_binary_storage
origin.h