|BEGIN_MESSAGE_MAP - not recognized [message #653312]
||Wed, 09 February 2011 10:28
Registered: February 2011
a block like|
is indicated with "syntax error" and the immediate following method is neither shown in the outline-view nor found in a search based on the indexer.
How could I tell CDT to ignore such blocks or to accept the syntax (which is correct for MS Visual Studio 2005)?
[Updated on: Wed, 09 February 2011 10:29]
Report message to a moderator
|Re: BEGIN_MESSAGE_MAP - not recognized [message #654427 is a reply to message #654101]
||Tue, 15 February 2011 16:55
| John McCabe
Registered: July 2009
On Mon, 14 Feb 2011 09:28:05 +0100, Wolfgang|
>It's no compiler generated "warning" but an eclipse warning.
>Therefore defining BEGIN / END_MESSAGE_MAP as empty macros in C++ settings in the "Paths and Symbols" section didn't change anything.
>The BEGIN / END_MESSAGE_MAP block is still marked with a "Syntax error" warning (an orange "?" besides the line number) and much more important the imediate following method isn't recognized by the eclipse parser and can't be found by a C-Search.
The problem really is that BEGIN/END_MESSAGE_MAP, and its associated
DECLARE_MESSAGE_MAP are macros that expand to fairly 'interesting'
pieces of code, all of which are Microsoft specific (which can cause
issues in Eclipse because, unless the latest version (8.0 or so) is
better, isn't really supported in Eclipse.
FWIW - afxwin.h has code that defined BEGIN_MESSAGE_MAP,
END_MESSAGE_MAP and DECLARE_MESSAGE_MAP, perhaps adding the path to
afxwin.h in your Paths and Symbols section may help. On my system it's
in C:\Program Files\Microsoft Visual Studio .NET\Vc7\atlmfc\include.
You may have to declare some other bits and pieces too though,
Powered by FUDForum
. Page generated in 0.05048 seconds