错误'BOOL'未命名类型

时间:2016-12-09 18:13:05

标签: boolean

这是代码:

/* the playing board is an array of these records */
typedef struct tagBOARD {
    char val;  /* the character on top face of die */
    char orient;  /* its orientation (0, 90, 180, 270 degree rotation) */
    BOOL Cused;    /* true if die was used in trying to make a word */
                  /* used only by computer in trying to find words */
    BOOL Uused;   /* true if player used letter by pushing button in */
    HWND hWindow;    /* handle of control corresponding to this die */
    char r, c;          /* row and column of this die */
    struct tagBOARD *link[8];  /* links to neighboring dice, some may be NULL */
   } BOARD;

但我总是得到这个错误:

[Error] 'BOOL' does not name a type
[Error] 'BOOL' does not name a type
[Error] 'HWND' does not name a type

我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:0)

至少

#include <windows.h>

我希望这是你的平台