Building long-term wealth isn't necessarily easy, but investing in the stock market is one of the simplest ways to do it.