HANOI, Vietnam — Visiting Vietnam for the first time, President Trump arrived for an economic summit meeting on Friday in a country still grappling with the legacy of its war with the United States two generations ago — land mines and Agent Orange, and some three million people killed.

Yet here in Vietnam, bitter memories of the war have dissipated — even if its poisonous inheritance has not.

“Both Vietnam and America lost so many men and shared such terrible pain,” said Do Tuan, who won a medal for his bravery in fighting American soldiers during the war and is now a businessman in Hanoi. “The America of the past and the America of the present are different.”