Put the following code in a C++ Header File.
The following function is to make it way more easier to draw text onto the client area of a window.
Now the only thing you need to do is include the C++ Header file containing this function into any C++ Source file and use the following code to dynamically write text onto the screen:
DoText(hwnd, 70, 50, "This is my text!!!");
70 and 50 are the values of the X and Y coordinates of the position to drawm the text in.
Tell me if this way is obsolete, returns errors, or in any other way is not a good thing to use.
Tell me if this helps.