OK, I can confirm this.
This code does not work.
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
CreateFil
return 0;
}
If you open the CC Debug dialog
see http://wiki.codeblocks.org/index.php?title=Code_Completion_Design#Code-Completion_debug_tool_dialog
, you will notice that "winbase.h" is not in the CC's file list, so this is the reason.
But this code works
#include <iostream>
#include <windows.h>
#include <winbase.h>
using namespace std;
int main()
{
CreateFi
return 0;
}
windows.h should usually be enough. However, you find this section in windows.h:
#ifdef RC_INVOKED
/* winresrc.h includes the necessary headers */
#include <winresrc.h>
#else
#include <stdarg.h>
#include <windef.h>
#include <wincon.h>
#include <winbase.h>
(...)
As CC does not fully support macro handling the first case (as if RC_INVOKED would be defined) is used. Thus the references are incomplete. However, I don't know "who" usually defines this macro. It looks like the resource compiler does so at runtime (compile time).