This function is used to the string is output at the current location.
void outtext(LPCTSTR str);
void outtext(TCHAR c);
The pointer to the string to be output.
The character to be output.
This function is obsolete and is declared only in graphics.h.
This function is not recommended.
The function changes the current position to the end of the string. You can use this function continuously to keep the output strings continuous.
// Output string (Multi-Byte character set) char s = "Hello World"; outtext(s);
// Output string (Unicode character set) wchar_t s = L"Hello World"; outtext(s);
// Output string (Project character set) TCHAR s = _T("Hello World"); outtext(s);
// Output characters (Multi-Byte character set) char c = 'A'; outtext(c);
// Output value, first format the number output as a string (Multi-Byte character set) char s; sprintf(s, "%d", 1024); outtext(s);