falla.zhang

导航

MFC 问题集(3)头文件被包含一次

vc++头文件被包含一次
比如你的头文件叫stdafx.h

方法一、

#ifndef _stdafx_h

#define _stdafx_h

//the header content

#endif

方法二、

头文件第一行写下:

#pragma once

posted on 2010-02-04 16:37  falla.zhang  阅读(208)  评论(0)    收藏  举报