<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use c++ to write Extension to listen to document open or save events in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339293#M8911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The question is how to Call AtlAdvise to subscribe to the document events. For IActiveviewEvents, we can use CLSID_ActiveViewEventsListener, but for IDocumentEvents, what is the Listener?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use&amp;nbsp; "AtlAdvise(m_spDocument, m_spVGEDocumentEvents, __uuidof(IDocumentEvents), &amp;amp;m_dwDocEventsCookie);"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sucessful. thankyou&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Jun 2013 14:55:49 GMT</pubDate>
    <dc:creator>taishengchen</dc:creator>
    <dc:date>2013-06-15T14:55:49Z</dc:date>
    <item>
      <title>How to use c++ to write Extension to listen to document open or save events</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339290#M8908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to listen to open mxd file event in arcmap extension. I find a interface:IDocumentEvents, but I don't know how to use it in C++ and What is the listener for IDocumentEvents.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 07:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339290#M8908</guid>
      <dc:creator>taishengchen</dc:creator>
      <dc:date>2013-06-15T07:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use c++ to write Extension to listen to document open or save events</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339291#M8909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The class that you are probably looking for is MxDocument:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/000v/000v000000nn000000.htm"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/000v/000v000000nn000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Get IApplication&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;From IApplication call get_Document to get IDocument&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Call AtlAdvise to subscribe to the document events&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;If the above is not sufficient information then I'd suggest to install and dig through the C++ samples associated with the ArcObjects SDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, programming in C# would be easier but your post indicated that you wanted to use C++.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best of luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 10:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339291#M8909</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-06-15T10:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use c++ to write Extension to listen to document open or save events</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339292#M8910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The class that you are probably looking for is MxDocument:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/000v/000v000000nn000000.htm"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/000v/000v000000nn000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Steps:&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Get IApplication&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;From IApplication call get_Document to get IDocument&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Call AtlAdvise to subscribe to the document events&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;If the above is not sufficient information then I'd suggest to install and dig through the C++ samples associated with the ArcObjects SDK.&lt;BR /&gt;&lt;BR /&gt;In general, programming in C# would be easier but your post indicated that you wanted to use C++.&lt;BR /&gt;&lt;BR /&gt;Best of luck!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question is how to Call AtlAdvise to subscribe to the document events. For IActiveviewEvents, we can use CLSID_ActiveViewEventsListener, but for IDocumentEvents, what is the Listener?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 13:42:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339292#M8910</guid>
      <dc:creator>taishengchen</dc:creator>
      <dc:date>2013-06-15T13:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use c++ to write Extension to listen to document open or save events</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339293#M8911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The question is how to Call AtlAdvise to subscribe to the document events. For IActiveviewEvents, we can use CLSID_ActiveViewEventsListener, but for IDocumentEvents, what is the Listener?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use&amp;nbsp; "AtlAdvise(m_spDocument, m_spVGEDocumentEvents, __uuidof(IDocumentEvents), &amp;amp;m_dwDocEventsCookie);"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sucessful. thankyou&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 14:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-c-to-write-extension-to-listen-to/m-p/339293#M8911</guid>
      <dc:creator>taishengchen</dc:creator>
      <dc:date>2013-06-15T14:55:49Z</dc:date>
    </item>
  </channel>
</rss>

