Langlois was born in Beaumont-en-Auge. He graduated from the École Polytechnique in 1806 and fought, as an infantry officer at the battles of Wagram, Gerona and Waterloo with a bravery that had him seriously injured and appointed colonel at the young age of twenty-six.