Stupid question about DWORD

Posted on 2008-11-12
Last Modified: 2013-11-20
Hi Experts,

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

Thank you,
Question by:thready
    LVL 13

    Accepted Solution

    DWORD and BOOL are type definitions and should be available if you include the "windows.h" header file.


    Alternatively you could manually define these:

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

    Open in new window

    LVL 86

    Expert Comment


    #include <wtypes.h>

    would be sufficient if you don't need the whole other Windows stuff also.
    LVL 1

    Author Comment

    you're good jkr......  thank you!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Show shut-down message as Windows 8 shuts down. 9 68
    PDF library for Delphi 2 82
    move a line in eclipse 3 45
    java ^ examples 8 51
    In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
    Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now