Dennis McCarthy was a member of Starfleet in the 24th century.
In 2365, he held the rank of captain, and was the commanding officer of the USS Apollo. (TNG: "The Measure Of A Man")
In 2371, McCarthy was listed among USS Voyager's crew on that vessel's crew manifest. (VOY: "Projections")