Seems you've downloaded pretty old sample (DirectX 8.1 one?) - you should download correct version of helper classes from DX8.1 SDK/samples page.

But better just download newest DirectX9 SDK and samples - all examples use ID3DXFont to output text and CustomUI even has a UNICODE edit control you can play with!