加上一句话 #include "stdafx.h" ,就像这样:#ifndef __MYGLOBAL_H
#define __MYGLOBAL_H#include "stdafx.h" CArray<CPoint,CPoint> ptArray;
void myfun(void);
#endifmyglobal.cpp:#include "myglobal.h"
void myfun(void)
{
//do something
}呵呵,一切ok
#define __MYGLOBAL_H#include "stdafx.h" CArray<CPoint,CPoint> ptArray;
void myfun(void);
#endifmyglobal.cpp:#include "myglobal.h"
void myfun(void)
{
//do something
}呵呵,一切ok
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货