Hi

Im working with Eclipse CDT for WIndows with Qt integration plugin. I have a problem with my winEvent() function.

declaration in QtClass.h
Qt Code:
  1. virtual bool winEvent(MSG *message, long *result);
To copy to clipboard, switch view to plain text mode 

declaration in QtClass.cpp
Qt Code:
  1. bool GUI::winEvent(MSG *message, long *result)
  2. {
  3. switch(message->message) // problem with that line
  4. {
  5. case Qt::Key_0 :
  6. //do something...
  7.  
  8. }
  9. return false;
  10. }
To copy to clipboard, switch view to plain text mode 

And my error log is:
Qt Code:
  1. gui.cpp:21:19: error: invalid use of incomplete type 'struct MSG'
  2. ../../../../Qt/4.7.3/include/QtGui/../../src/gui/kernel/qwindowdefs_win.h:117:16: error: forward declaration of 'struct MSG'
  3. gui.cpp:25:27: error: invalid use of incomplete type 'struct MSG'
  4. ../../../../Qt/4.7.3/include/QtGui/../../src/gui/kernel/qwindowdefs_win.h:117:16: error: forward declaration of 'struct MSG'
To copy to clipboard, switch view to plain text mode 

What i did wrong?