This is the totality of everything the auto-generated stdafx.h contains:
Code:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here
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.
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.