[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1113
  • Last Modified:

Stupid question about DWORD

Hi Experts,

I'm using a library that is STL-only.  My stupid question is - why is DWORD (or BOOL) not recognized?

Thank you,
Mike
0
thready
Asked:
thready
1 Solution
 
numberkruncherCommented:
DWORD and BOOL are type definitions and should be available if you include the "windows.h" header file.

i.e.
#include

Alternatively you could manually define these:


typedef unsigned long DWORD;
typedef int BOOL;
 
#ifndef TRUE
#define TRUE      1
#define FALSE     0
#endif

Open in new window

0
 
jkrCommented:
Actually,

#include <wtypes.h>

would be sufficient if you don't need the whole other Windows stuff also.
0
 
threadyAuthor Commented:
you're good jkr......  thank you!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now