mozilla

Revision 176867 of Using nsCOMPtr

  • Revision slug: Using_nsCOMPtr
  • Revision title: Using nsCOMPtr
  • Revision id: 176867
  • Created:
  • Creator: kohei.yoshino
  • Is current revision? No
  • Comment More Contents

Revision Content

This document is the sum total of everything written down about nsCOMPtr. If you have a question about nsCOMPtr, and this document doesn't answer it, there probably isn't a document that answers it. You'll have to turn to the XPCOM newgroup or another experienced nsCOMPtr user, or find the answer by experimentation.

If you've never used nsCOMPtr before, you're starting in the right place. Just keep reading. You'll know when to stop. After you've been using nsCOMPtrs for a while, and you reach unfamiliar territory, or run into compiler errors; you may want to return to this document to get help from the Reference Manual or the FAQ.

Contents

  1. Status, Recent Changes, and Plans
    1. Recent changes to nsCOMPtr
  2. Getting Started Guide
    1. Introduction
    2. Using nsCOMPtr
    3. Summary
  3. Reference Manual
    1. The Basics
    2. Initialization and Assignment
    3. Using an nsCOMPtr<T> as a T*
    4. Efficiency and Correctness
    5. Compiler Annoyances
  4. Frequently Asked Questions
    1. Buildtime Errors
    2. Runtime Errors
    3. How do I...
    4. General
    5. Bibliography

Original Document Information

  • Author(s): Scott Collins
  • Last Updated Date: December 11, 2001
  • Copyright Information: Copyright © 1999, 2000 by the Mozilla organization; use is subject to the MPL. Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details.
{{ wiki.languages( { "ja": "ja/Using_nsCOMPtr" } ) }}

Revision Source

<p>This document is the sum total of everything written down about <code>nsCOMPtr</code>. If you have a question about <code>nsCOMPtr</code>, and this document doesn't answer it, there probably isn't a document that answers it. You'll have to turn to <a class="external" href="news:mozilla.dev.tech.xpcom">the XPCOM newgroup</a> or another experienced <code>nsCOMPtr</code> user, or find the answer by experimentation.
</p><p>If you've never used <code>nsCOMPtr</code> before, you're starting in the right place. Just keep reading. You'll know when to stop. After you've been using <code>nsCOMPtr</code>s for a while, and you reach unfamiliar territory, or run into compiler errors; you may want to return to this document to get help from the <a href="en/Using_nsCOMPtr/Reference_Manual">Reference Manual</a> or the <a href="en/Using_nsCOMPtr/Frequently_Asked_Questions">FAQ</a>.
</p>
<h2 name="Contents"> Contents </h2>
<ol><li>  <a href="en/Using_nsCOMPtr/Status%2c_Recent_Changes%2c_and_Plans">Status, Recent Changes, and Plans</a>
<ol><li> <a href="en/Using_nsCOMPtr/Status%2c_Recent_Changes%2c_and_Plans#Recent_changes_to_nsCOMPtr">Recent changes to <code>nsCOMPtr</code></a>
</li></ol>
</li><li>  <a href="en/Using_nsCOMPtr/Getting_Started_Guide">Getting Started Guide</a>
<ol><li> <a href="en/Using_nsCOMPtr/Getting_Started_Guide#Introduction">Introduction</a>
</li><li> <a href="en/Using_nsCOMPtr/Getting_Started_Guide#Using_nsCOMPtr">Using <code>nsCOMPtr</code></a>
</li><li> <a href="en/Using_nsCOMPtr/Getting_Started_Guide#Summary">Summary</a>
</li></ol>
</li><li>  <a href="en/Using_nsCOMPtr/Reference_Manual">Reference Manual</a>
<ol><li> <a href="en/Using_nsCOMPtr/Reference_Manual#The_Basics">The Basics</a>
</li><li> <a href="en/Using_nsCOMPtr/Reference_Manual#Initialization_and_Assignment">Initialization and Assignment</a>
</li><li> <a href="en/Using_nsCOMPtr/Reference_Manual#Using_an_nsCOMPtr.3CT.3E_as_a_T.2A">Using an <code>nsCOMPtr&lt;T&gt;</code> as a <code>T*</code></a>
</li><li> <a href="en/Using_nsCOMPtr/Reference_Manual#Efficiency_and_Correctness">Efficiency and Correctness</a>
</li><li> <a href="en/Using_nsCOMPtr/Reference_Manual#Compiler_Annoyances">Compiler Annoyances</a>
</li></ol>
</li><li> <a href="en/Using_nsCOMPtr/Frequently_Asked_Questions">Frequently Asked Questions</a>
<ol><li> <a href="en/Using_nsCOMPtr/Frequently_Asked_Questions#Buildtime_Errors">Buildtime Errors</a>
</li><li> <a href="en/Using_nsCOMPtr/Frequently_Asked_Questions#Runtime_Errors">Runtime Errors</a>
</li><li> <a href="en/Using_nsCOMPtr/Frequently_Asked_Questions#How_do_I...">How do I...</a>
</li><li> <a href="en/Using_nsCOMPtr/Frequently_Asked_Questions#General">General</a>
</li><li> <a href="en/Using_nsCOMPtr/Frequently_Asked_Questions#Bibliography">Bibliography</a>
</li></ol>
</li></ol>
<div class="originaldocinfo">
<h2 name="Original_Document_Information"> Original Document Information </h2>
<ul><li> Author(s): <a class="external" href="mailto:scc@mozilla.org">Scott Collins</a>
</li><li> Last Updated Date: December 11, 2001
</li><li> Copyright Information:  Copyright © 1999, 2000 by the Mozilla organization; use is subject to the <a class="external" href="http://www.mozilla.org/MPL/">MPL</a>.  Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | <a class="external" href="http://www.mozilla.org/foundation/licensing/website-content.html">Details</a>.
</li></ul>
</div>
<div class="noinclude">
</div>
{{ wiki.languages( { "ja": "ja/Using_nsCOMPtr" } ) }}
Revert to this revision