The difference between gambling and buying stocks of companies is that you are betting on the future of the company and you have records you can research. If something terrible happens to the country, like a natural disaster, stocks will go down. If the country does well, the stock market will most likely go up. The key to doing well in the stock market is to research the companies you are trying to buy stock in. If you just pick a couple random companies to invest your well-earned money in, it would be more like gambling. It is possible to lose a large sum of money buying stocks if a company that was once flourishing has something bad happen.
For example, those who owned stock in BP were probably doing all right until they had a vessel drop hundreds of thousands of oil into the gulf. Gambling in a casino, on the other hand is completely different. The house always a edge, and even though the edge is slim it still makes it so that the house will always win in the long run. If you are gambling in Vegas you better be using money you are willing to lose. In conclusion, if you do your homework and research and choose your stock right, more likely than not you will be making money. One thing is for sure I would feel safer tying my money up in the stock market than at the blackjack table.