I'm no expert at pilling a dog but I do know a lot of tricks for difficult patients. Capsule form pills usually don't contain medication in the actual capsule, the medication is the powder. You should be able to break it open and just serve the powder inside. That way, you can just sprinkle it on his food or mix it in a syringe. I'd ask the vet first, as some meds may not be directly mixable with certain foods or liquids.