Number8
2009-07-02 20:44:03 UTC
Hello,
Working on a VisStudio 2008 addin, using managed C++ (C++/CLR in the New
Project wizard).
In the OnConnection() function, I want to add a handler to the WindowEvents
collection.
When I do this:
// Hook up events
EnvDTE::Events ^ events = _applicationObject->Events;
EnvDTE::WindowEvents ^winEvents = events->WindowEvents();
I get an error message:
error C2660: 'EnvDTE::Events::WindowEvents::get' : function does not take 0
arguments
In the Object Browser I find this:
public EnvDTE.WindowEvents WindowEvents(EnvDTE.Window WindowFilter = null)
{ get; }
Thanks for any hints about what I'm doing wrong...
Note that:
EnvDTE::WindowEvents ^winEvents = events->WindowEvents;
EnvDTE::WindowEvents ^winEvents = events->WindowEvents(0);
both give the same error as mentioned above.
Working on a VisStudio 2008 addin, using managed C++ (C++/CLR in the New
Project wizard).
In the OnConnection() function, I want to add a handler to the WindowEvents
collection.
When I do this:
// Hook up events
EnvDTE::Events ^ events = _applicationObject->Events;
EnvDTE::WindowEvents ^winEvents = events->WindowEvents();
I get an error message:
error C2660: 'EnvDTE::Events::WindowEvents::get' : function does not take 0
arguments
In the Object Browser I find this:
public EnvDTE.WindowEvents WindowEvents(EnvDTE.Window WindowFilter = null)
{ get; }
Thanks for any hints about what I'm doing wrong...
Note that:
EnvDTE::WindowEvents ^winEvents = events->WindowEvents;
EnvDTE::WindowEvents ^winEvents = events->WindowEvents(0);
both give the same error as mentioned above.