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:
Whenever I try to compile the extension though, I get an unresolved external symbol error for the DrawTextW method:
textSurface.Create(rdPtr->width, rdPtr->height, winSurface);
textSurface.DrawText(rdPtr->text, _tcslen(rdPtr->text), &rect, DT_LEFT | DT_TOP,
rdPtr->defaultColor, rdPtr->font, mode, fx, fxParam, antialiasing, 0, 0, 8);
I'm using VS 2019 and the F2.5 SDK provided in the owner's lounge. I've tried compiling with the VS 2010 and VS 2017 Windows XP toolsets, and the result is the same. Any idea on how this can be fixed?