Hi
Im working with Eclipse CDT for WIndows with Qt integration plugin. I have a problem with my winEvent() function.
declaration in QtClass.h
virtual bool winEvent(MSG *message, long *result);
virtual bool winEvent(MSG *message, long *result);
To copy to clipboard, switch view to plain text mode
declaration in QtClass.cpp
bool GUI::winEvent(MSG *message, long *result)
{
switch(message->message) // problem with that line
{
case Qt::Key_0 :
//do something...
}
return false;
}
bool GUI::winEvent(MSG *message, long *result)
{
switch(message->message) // problem with that line
{
case Qt::Key_0 :
//do something...
}
return false;
}
To copy to clipboard, switch view to plain text mode
And my error log is:
gui.cpp:21:19: error: invalid use of incomplete type 'struct MSG'
../../../../Qt/4.7.3/include/QtGui/../../src/gui/kernel/qwindowdefs_win.h:117:16: error: forward declaration of 'struct MSG'
gui.cpp:25:27: error: invalid use of incomplete type 'struct MSG'
../../../../Qt/4.7.3/include/QtGui/../../src/gui/kernel/qwindowdefs_win.h:117:16: error: forward declaration of 'struct MSG'
gui.cpp:21:19: error: invalid use of incomplete type 'struct MSG'
../../../../Qt/4.7.3/include/QtGui/../../src/gui/kernel/qwindowdefs_win.h:117:16: error: forward declaration of 'struct MSG'
gui.cpp:25:27: error: invalid use of incomplete type 'struct MSG'
../../../../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?
Bookmarks