rem: BPrivate::BAppServerLink *link=new BPrivate::BAppServerLink(); link->SetOpCode(AS_COUNT_WORKSPACES); link->FlushWithReply(&replydata);
add: BAppServerLink link; link.SetOpCode(AS_COUNT_WORKSPACES); link.FlushWithReply(&replydata);
context: _IMPEXP_BE int32 count_workspaces(){	PortLink::ReplyData replydata;	int32 count;		BPrivate::BAppServerLink *link=new BPrivate::BAppServerLink();	link->SetOpCode(AS_COUNT_WORKSPACES);	link->FlushWithReply(&replydata);		count=*((int32*)replydata.buffer);		delete link;	return count;}