use keyword extern to declare it in the head file.
in the cpp, the default of varient is static.
in the c, the default of varient is extern.
Good lucky.
Jansen Zhu.
in the cpp, the default of varient is static.
in the c, the default of varient is extern.
Good lucky.
Jansen Zhu.
extern HWND hWnda;
因为要指明这个变量在别的源文件里定义。
當某各模塊(如b.cpp)要求使用,则在b.cpp中#include "a.h"即可,有时要注意路径.