After consulting a dermatologist and being prescribed the right medication, if the lesions persist, its usually because of a hygiene issue. The sweat and moisture that accumulates in the groin area is what is aggravating and keeping these lesions on you. Try using an antifungal soap and powder as well, along with the cream and tablets.
Next Steps
Keep the area dry and sweat free. Keep applying powder.
Health Tips
If it gets worse even after this, then re consult your dermatologist.