Forum » Programiranje » [C++] stdafx.h, precompiled headers
[C++] stdafx.h, precompiled headers
fogl ::
Imam microsoft visual c++ 6, pa med headerji nimam stdafx...kako to? Kje ga lahko dobim...sem že vse živo prebrskal po netu, pa nič?
lp, klemen
- spremenilo: CCfly ()
slovencl ::
Jest imam enak problem...nekje naj bi vključil stdafx.h (karkoli že to je), pa ga ni...pri projektu se ni generiral...sem dal empty project, potem sem pa delal posamezne source fajle in headerje...stdafx.h pa se ni pojavil.
Če ga naredim sam, pa ne vem kaj naj sploh vključim notri v stdafx.h?
Če ga naredim sam, pa ne vem kaj naj sploh vključim notri v stdafx.h?
Senitel ::
Ja če kreiraš prazen projekt, potem je jasno, da tam ne bo nič zraven. Kdo sploh rabi ta stdafx? To je itak bolj VC fora.
Kekec ::
heh potem pa dodaj nov file ga poimenuj stdafx.h in mu dodaj vsebin po želji:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER // Allow use of features specific to Windows XP or later.
#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
#endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.
#endif
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include (windows.h)
// TODO: reference additional headers your program requires here
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER // Allow use of features specific to Windows XP or later.
#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
#endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.
#endif
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include (windows.h)
// TODO: reference additional headers your program requires here
Vesoljc ::
@sentinel
to ni vc only fora...
da ga pa ne rabis pa tudi ni cisto res. ob pravilni uporabi zna stdafx mocno pohitriti postopek build-anja, pri vecjih projektih seveda...
klik
to ni vc only fora...
da ga pa ne rabis pa tudi ni cisto res. ob pravilni uporabi zna stdafx mocno pohitriti postopek build-anja, pri vecjih projektih seveda...
klik
Abnormal behavior of abnormal brain makes me normal...
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [c++] dvosmerno povezan seznamOddelek: Programiranje | 2555 (2391) | upirna |
» | [C++] preprosto risanjeOddelek: Programiranje | 1660 (1537) | popec |
» | [C++] NULL: Undeclared identifier - HELP!Oddelek: Programiranje | 1219 (1157) | CCfly |
» | Win32 Console ProjectOddelek: Programiranje | 925 (873) | Fury |
» | c++ header fileOddelek: Programiranje | 847 (806) | Vesoljc |