This is the totality of everything the auto-generated stdafx.h contains:
All it does is make sure that those headers are included in every source file. The only purpose of this is to enable precompiled headers to speed up compilation. It doesn't contain ANY nonstandard classes, interfaces, or functions. All the magic is in <windows.h>, so if you include that (as the FIRST include you do), then every WinAPI function should be visible and useable.
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
// C RunTime Header Files
// TODO: reference additional headers your program requires here
An his compiler IS able to find the headers -- he's including <windows.h> which is where those functions are declared. It wouldn't compile if he didn't have the headers.
He's getting a linker error that it can't find the library where the executable code for functions like TextOut live. He just needs to link whatever Win32 libraries are included with Dev-C++.
TextOut() is not VC++ specific; any platform that can use the WinAPI to compile Windows programs can successfully compile the code he used.