My understanding of the difference is that Socialism coexists with Capitalism (it attempts to emulate Communism on top of the Capitalist system) while Communism replaces Capitalism (the government directly dictates resource allocation via vouchers etc). With Socialism, the market still plays the primary role and the government manipulates allocation indirectly, through things like taxation, credits, and welfare.