I'm writing an extension and I need to draw text to a surface. I've created a cSurface object and then use the DrawText method as shown here:


cSurface textSurface;...