Hi Jan,
Do these worms look like flat little chiclets? If so, they could be pieces of a tapeworm. Tell the vet, and ask to have your dog dewormed again, bearing in mind that it could be a tapeworm.
Does your dog have a large appetite, but is very slim/skinny? These could also be symptoms of a tapeworm. Good luck!