Hi,
Not knowing how complex is the overall structure of the given tested application but considering only the objects you've mentioned in the initial post, I would do it this way:
-- Map the SWTObject("PCC", "") object. Agree when TestComplete suggests to map all SWTObject("Composite") parents;
-- Select the 'Find object on any level of hierarchy' (or how it is called) checkbox in the lower-left corner of the mapping editor when mapping the SWTObject("PCC", "") object;
-- Navigate to the NameMapping editor and delete all mapped SWTObject("Composite") objects between SWTObject("Shell", "PCW") and SWTObject("PCC", ""). Answer 'No' when prompted to delete the mapped object, so that TestComplete does not delete the mapping for the SWTObject("PCC", "") object but moved it up one level;
-- Finally, you should get a NameMapping tree with the SWTObject("Shell", "PCW") object and the SWTObject("PCC", "") mapped as its direct child with the Extended Find checkbox selected;
-- Navigate to the Aliases tree and check that that the Aliases tree has the same structure;
-- With the PCC window opened on the screen, right-click the PCC object in the Aliases window and select the Highlight On Screen command. The target window must be identified and highlighted if everything was done correctly.
With the above mapping, you should be able to address the PCC window in your test code in both applications with the line like this:
Aliases.PCW.PCC
Does this help?