Lm th? no ? s? d?ng VC_EXTRALEAN v WIN32_LEAN_AND_MEAN ? tng c?ng qu tr?nh xy d?ng b?ng Visual C++

D?ch tiu ? D?ch tiu ?
ID c?a bi: 166474 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

TM T?T

? tng t?c ? qu tr?nh xy d?ng, Visual c ++ v cc c?a s? Thng tin th cung c?p sau m?i ?nh ngh?a:
   VC_EXTRALEAN
   WIN32_LEAN_AND_MEAN
				
B?n c th? s? d?ng chng ? gi?m kch th?c c?a t?p tin tiu ? Win32.

THNG TIN THM

VC_EXTRALEAN v WIN32_LEAN_AND_MEAN ?c s? d?ng ? lo?i tr? hi?m khi s? d?ng d?ch v? t? Windows thng tin th. VC_EXTRALEAN ch? c th? ?c s? d?ng trong MFC cc d? n, nhng WIN32_LEAN_AND_MEAN c th? ?c s? d?ng trong b?t k? d? n.

VC_EXTRALEAN ?nh ngh?a sau y trong AFXV_W32.h:
   WIN32_EXTRA_LEAN
   NOSERVICE
   NOMCX
   NOIME
   NOSOUND
   NOCOMM
   NOKANJI
   NORPC
   NOPROXYSTUB
   NOIMAGE
   NOTAPE
				
WIN32_EXTRA_LEAN khng lm b?t c? i?u g?. Xin vui l?ng tham kh?o Windows.h ? c thng tin lin quan ?n cc bi?u t?ng NOxxx ang ?c xc ?nh.

T?o m?i ?c ra Visual C++ 5.0 v sau AppWizard ?ng d?ng s? t? ?ng h?ng l?i t? VC_EXTRALEAN. B?n c th? c?ng t? xc ?nh VC_EXTRALEAN ? tng t?c ? qu tr?nh xy d?ng nhi?u ?ng d?ng MFC c? hn.

WIN32_LEAN_AND_MEAN: Tiu ? Windows s? d?ng bi?u t?ng ny ? lo?i tr? hi?m khi s? d?ng t?p tin tiu ?. Ha?y tham khao Windows.H ? xc ?nh cc t?p tin s? lo?i tr? khi bi?u t?ng ny ?c ?nh ngh?a. K? t? khi MFC ?nh ngh?a WIN32_LEAN_AND_MEAN, t?t c? MFC d? n t? ?ng s? d?ng n.

Khng MFC c ++ v c cc ?ng d?ng c th? xc ?nh WIN32_LEAN_AND_MEAN v NOservice p d?ng b?t k? ?nh ngh?a, ch?ng h?n nh NOSOUND (xem DevStudio\Vc\include\Windows.h), ? gi?m c?a h? xy d?ng l?n.

? thm cc ?nh ngh?a, t? d? n menu, ch?n Thi?t ?t. D? n thi?t ?t h?p tho?i xu?t hi?n. Nh?p vo tab C/c + +. Trong cc Danh sch cc chuyn m?c, ch?n Preprocessor. Thm cc ?nh ngh?a m b?n mu?n ? cc Preprocessor ?nh ngh?a h?p.

Thu?c tnh

ID c?a bi: 166474 - L?n xem xt sau cng: 19 Thang Tam 2011 - Xem xt l?i: 2.0
p d?ng
  • Microsoft Visual C++ 4.2 Enterprise Edition
  • Microsoft Visual C++ 5.0 Enterprise Edition
  • Microsoft Visual C++ 5.0 Professional Edition
T? kha:
kbperformance kbhowto kbinfo kbmt KB166474 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:166474

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com