C++ properties declared with __declspec do not show up correctly in object browser

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
If you declare a property in C++ like the following:

__declspec(property(get=GetProperty, put=SetProperty)) int Property;

where GetProperty and SetProperty are the accessors for the function,
then the syntax and comments for the property do not show up in the
object browser.  In the object browser, the syntax section for the
property just shows the word "public" with not other syntax or
documentation.

Has anyone else encountered this problem or know a workaround for it?

View the full article
 
Back
Top