Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows.h macros not defined
    primarykey
    data
    text
    <p>I'm making a simple GUI library, and I've gotten to the first test. The weird thing is, none of the windows macros seem to be defined. I'm getting errors like "'NULL' was not declared in scope" and "'HANDLE' was not declared in scope." I'm thinking it might be the way I organized the code because the stuff in the entry file easywin.hpp isn't defined either, but it SEEMS like it should work. Here's (most) of easywin.hpp:</p> <pre><code>#ifndef EASYWIN_BASE_HPP #define EASYWIN_BASE_HPP #include &lt;string&gt; #include &lt;map&gt; //Strings are used everywhere, so might as well use them globally using std::string; /** * A namespace to encapsulate WinAPI and prevent name clashing. **/ namespace WinAPI{ #include &lt;windows.h&gt; #include &lt;commctrl.h&gt; } //header includes (ordered according to inheritance) #include "Application.hpp" #include "Object.hpp" #include "Widget.hpp" #include "Container.hpp" #include "Window.hpp" #include "Dialog.hpp" //not implemented yet, so don't include //#include "Light.hpp" #include "Heavy.hpp" // there are more container types #include "Control.hpp" #include "Textbox.hpp" #include "Tooltip.hpp" //source includes //needed to simplify class dependencies #include "Application.cpp" #include "Object.cpp" #include "Widget.cpp" #include "Container.cpp" #include "Window.cpp" #include "Dialog.cpp" //not implemented yet, so don't include //#include "Light.cpp" #include "Heavy.cpp" // there are more container types #include "Control.cpp" #include "Textbox.cpp" #include "Tooltip.cpp" #endif </code></pre> <p>I just don't get it. If I'm including everything in this file, those files SHOULD get what's defined in this file. What did I do wrong?</p> <p>EDIT: To encourage better answers, I'll post the git repository:</p> <p><a href="https://github.com/PiMaster/Easywin" rel="nofollow">https://github.com/PiMaster/Easywin</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload