This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi The following example is compilable, but the editor complains "Unable to resolve identifier mi". I am using the MinGW TDM toolchain. Thanks for your work! //------------------------------------ #include <windows.h> #include <winuser.h> int main(int argc, char** argv) { INPUT inputList[1]; inputList[0].mi.dx = 1; return 0; } //------------------------------------
hello, please, could you provide declaration of INPUT structure. with declaration from http://msdn.microsoft.com/en-us/library/ms646270%28v=vs.85%29.aspx I can not reproduce the issue.
Created attachment 108184 [details] Screenshot of the compiler's version dialog
Created attachment 108185 [details] Screenshot of the problem in Netbeans' edtitor window
Hi The INPUT structure is declared on my system in this way: typedef struct tagINPUT { DWORD type; __MINGW_EXTENSION union { MOUSEINPUT mi; KEYBDINPUT ki; HARDWAREINPUT hi; } DUMMYUNIONNAME; } INPUT,*PINPUT,*LPINPUT; I added screenshots of my MinGW TDM version info window and of my Netbeans editor window showing the error as it is displayed on my 64 bit systems (I did not check on 32 bit). Hope this helps. Regards Friedemann Seebass
minimal test case: typedef struct tagINPUT { DWORD type; __extension__ union { MOUSEINPUT mi; KEYBDINPUT ki; HARDWAREINPUT hi; } ; } INPUT,*PINPUT,*LPINPUT; int main(int argc, char** argv) { INPUT inputList[1]; inputList[0].mi.dx = 1; return 0; }
fixed http://hg.netbeans.org/cnd-main?cmd=changeset;node=1af08918200e