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
LVL 1
threadyAsked:
Who is Participating?
 
numberkruncherConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.