Previous Topic: CaCrossProjectMerge

Next Topic: void SetFromState(HAROBJID iProjectId, HAROBJID iStateId)


void SetFromState(LPCTSTR szProjectName, LPCTSTR szStateName)

Sets the Project and State that contain the source packages to merge with. These must differ from the Project and State set in the Context.

Note: A list of available projects may be retrieved from a CaHarvest object using GetProjectList(). From that list, select a project by name and extract it's ObjId. Then, using the CaHarvest object's GetStateList( ObjId ) function, retrieve a list of available states in that project. The name or objid can then be used in SetFromState.

Owning Class

CaCrossPackageMerge

Arguments
Return Value

None

Example

CaCrossProjectMerge& xprojmerge = CaContext.GetCrossProjectMerge(); xprojmerge.SetFromState( szProject, szState );