Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free

C ++: stdafx



For what you need the stdafx.h and stdafx.cpp

In the stdafx, references to Windows are written, which do not often change and are used in the program.

These are pre-compliments.



For this, see



In a Classic Desktop project


// stdafx.h : include file for standard system include files,

// or project specific include files that are used frequently, but

// are changed infrequently



#pragma once


#include "targetver.h"


#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



In a standard C ++ Classic Desktop project


// stdafx.cpp : source file that includes just the standard includes

// Win32Project1.pch will be the pre-compiled header

// stdafx.obj will contain the pre-compiled type information


#include "stdafx.h"


// TODO: reference any additional headers you need in STDAFX.H

// and not in this file


C ++: stdafx


Contact for Jobs, Project Requests: