» »

[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 ()

Senitel ::

stdafx se generira skupaj s projektom...

fogl ::

Kako to ?
lp, klemen

BigWhale ::

File | New | ....

Tam nekje... in potem das win32 console application...

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?

Senitel ::

Ja če kreiraš prazen projekt, potem je jasno, da tam ne bo nič zraven. >:D 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

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
Abnormal behavior of abnormal brain makes me normal...


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

[c++] dvosmerno povezan seznam

Oddelek: Programiranje
122564 (2400) upirna
»

[C++] preprosto risanje

Oddelek: Programiranje
71668 (1545) popec
»

[C++] NULL: Undeclared identifier - HELP!

Oddelek: Programiranje
101228 (1166) CCfly
»

Win32 Console Project

Oddelek: Programiranje
6933 (881) Fury
»

c++ header file

Oddelek: Programiranje
5853 (812) Vesoljc

Več podobnih tem