C#, WPF, vb.Net, vba, SQL Server, Access Programmierer, Excel, ASP Core MVC Webforms Telefon: 07022/9319004 freib. Software Entwickler   Kontakt
#

C++: stdafx

 

 

Wofür benötigt man die stdafx.h und stdafx.cpp

in der stdafx werden Verweise zu Windows eingeschrieben, die sich nicht oft ändern und im Programm verwendet werden.

Diese werden vorkompilliert.

 

Beschreibung:

Hierzu unter https://msdn.microsoft.com/de-de/library/h552b3ca.aspx

 

Stdafx.h

In eine Classic Desktop Projekt

 

// 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

 

Stdafx.cpp

In einem Standard- C++ Projekt Classic Desktop

 

// 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

 

Mobile
»
C++: stdafx

.

Jobs, Projekte, Angebote für Freiberufler, Selbstständig an Raimund.Popp@Microsoft-Programmierer.de