<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building a C++ XPCOM Component in Windows</title>
	<atom:link href="http://nerdlife.net/building-a-c-xpcom-component-in-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/</link>
	<description>*Insert Witty Subtitle Here*</description>
	<lastBuildDate>Sat, 14 Jan 2012 16:38:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Michael</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-2/#comment-7746</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 08 Jan 2012 10:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-7746</guid>
		<description>How do I get a String return instead of long in this example? Thanks for the help.</description>
		<content:encoded><![CDATA[<p>How do I get a String return instead of long in this example? Thanks for the help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ameya</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-2/#comment-7745</link>
		<dc:creator>ameya</dc:creator>
		<pubDate>Sat, 07 Jan 2012 23:28:37 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-7745</guid>
		<description>I got this error  &quot;TypeError: Components.classes[cid] is undefined &quot; on hitting GO.
Plz help me...

is it working on FF 6?</description>
		<content:encoded><![CDATA[<p>I got this error  &#8220;TypeError: Components.classes[cid] is undefined &#8221; on hitting GO.<br />
Plz help me&#8230;</p>
<p>is it working on FF 6?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mozilla XPCOM extensions. &#124; Source Code Auditing</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-2/#comment-7693</link>
		<dc:creator>Mozilla XPCOM extensions. &#124; Source Code Auditing</dc:creator>
		<pubDate>Thu, 22 Dec 2011 14:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-7693</guid>
		<description>[...] http://nerdlife.net/building-a-c-xpcom-component-in-windows/    LD_AddCustomAttr(&quot;AdOpt&quot;, &quot;1&quot;); LD_AddCustomAttr(&quot;Origin&quot;, &quot;other&quot;); LD_AddCustomAttr(&quot;theme_bg&quot;, &quot;ffffff&quot;); LD_AddCustomAttr(&quot;theme_text&quot;, &quot;333333&quot;); LD_AddCustomAttr(&quot;theme_link&quot;, &quot;0066cc&quot;); LD_AddCustomAttr(&quot;theme_border&quot;, &quot;f2f7fc&quot;); LD_AddCustomAttr(&quot;theme_url&quot;, &quot;ff4b33&quot;); LD_AddCustomAttr(&quot;LangId&quot;, &quot;1&quot;); LD_AddCustomAttr(&quot;Autotag&quot;, &quot;technology&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;firefox&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;mozilla&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;xpcom&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;firefox-extensions&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;firefox-plugin&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;xpcom-extensions&quot;); LD_AddSlot(&quot;wpcom_below_post&quot;); LD_GetBids();  Share this:TwitterFacebookLike this:LikeBe the first to like this post.   This entry was posted in Firefox, Mozilla, XPCOM and tagged Firefox Extensions, Firefox Plugin, XPCOM extensions. Bookmark the permalink.    &#8592; NPAPI Plugin (Must&#160;read) How to extract Interface and Property details from NPAPI Windows&#160;plugin &#8594; [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://nerdlife.net/building-a-c-xpcom-component-in-windows/" rel="nofollow">http://nerdlife.net/building-a-c-xpcom-component-in-windows/</a>    LD_AddCustomAttr(&quot;AdOpt&quot;, &quot;1&quot;); LD_AddCustomAttr(&quot;Origin&quot;, &quot;other&quot;); LD_AddCustomAttr(&quot;theme_bg&quot;, &quot;ffffff&quot;); LD_AddCustomAttr(&quot;theme_text&quot;, &quot;333333&quot;); LD_AddCustomAttr(&quot;theme_link&quot;, &quot;0066cc&quot;); LD_AddCustomAttr(&quot;theme_border&quot;, &quot;f2f7fc&quot;); LD_AddCustomAttr(&quot;theme_url&quot;, &quot;ff4b33&quot;); LD_AddCustomAttr(&quot;LangId&quot;, &quot;1&quot;); LD_AddCustomAttr(&quot;Autotag&quot;, &quot;technology&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;firefox&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;mozilla&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;xpcom&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;firefox-extensions&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;firefox-plugin&quot;); LD_AddCustomAttr(&quot;Tag&quot;, &quot;xpcom-extensions&quot;); LD_AddSlot(&quot;wpcom_below_post&quot;); LD_GetBids();  Share this:TwitterFacebookLike this:LikeBe the first to like this post.   This entry was posted in Firefox, Mozilla, XPCOM and tagged Firefox Extensions, Firefox Plugin, XPCOM extensions. Bookmark the permalink.    &larr; NPAPI Plugin (Must&nbsp;read) How to extract Interface and Property details from NPAPI Windows&nbsp;plugin &rarr; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shankha acharya</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-2/#comment-7668</link>
		<dc:creator>shankha acharya</dc:creator>
		<pubDate>Sun, 18 Dec 2011 19:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-7668</guid>
		<description>Hi I am new in XpCom
is it  suppose to work in mozilla  8.1 ?

its not working for me :(

I downloaded the older gecko sdk and followed all the steps as above.
[because in latest gecko 8.1 sdk so many header files are changed and not getting any 
proper example in web that uses the latest sdk]

any Idea?</description>
		<content:encoded><![CDATA[<p>Hi I am new in XpCom<br />
is it  suppose to work in mozilla  8.1 ?</p>
<p>its not working for me <img src='http://nerdlife.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I downloaded the older gecko sdk and followed all the steps as above.<br />
[because in latest gecko 8.1 sdk so many header files are changed and not getting any<br />
proper example in web that uses the latest sdk]</p>
<p>any Idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goseas</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-2/#comment-7644</link>
		<dc:creator>goseas</dc:creator>
		<pubDate>Sat, 17 Dec 2011 01:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-7644</guid>
		<description>it&#039;s works as above code when build as release,one more question,
how to make a serveice or singleton component</description>
		<content:encoded><![CDATA[<p>it&#8217;s works as above code when build as release,one more question,<br />
how to make a serveice or singleton component</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goseas</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-1/#comment-7604</link>
		<dc:creator>goseas</dc:creator>
		<pubDate>Sat, 10 Dec 2011 12:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-7604</guid>
		<description>where to change the buildID? i change the comp-module.cpp as below,
finally,there is a error show xpcomglue_s.lib(nsCOMPtr.obj) : warning LNK4099: PDB“generated.pdb”

#include &quot;mozilla/ModuleUtils.h&quot;
#include &quot;nsIClassInfoImpl.h&quot;
#include &quot;comp-impl.h&quot;
#include &quot;comp.h&quot;

////////////////////////////////////////////////////////////////////////
// With the below sample, you can define an implementation glue
// that talks with xpcom for creation of component nsSampleImpl
// that implement the interface nsISample. This can be extended for
// any number of components.
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// Define the contructor function for the object nsSampleImpl
//
// What this does is defines a function nsSampleImplConstructor which we
// will specific in the nsModuleComponentInfo table. This function will
// be used by the generic factory to create an instance of nsSampleImpl.
//
// NOTE: This creates an instance of nsSampleImpl by using the default
//		 constructor nsSampleImpl::nsSampleImpl()
//
NS_GENERIC_FACTORY_CONSTRUCTOR(CSpecialThing)

// The following line defines a kNS_SAMPLE_CID CID variable.
NS_DEFINE_NAMED_CID(SPECIALTHING_CID);

// Build a table of ClassIDs (CIDs) which are implemented by this module. CIDs
// should be completely unique UUIDs.
// each entry has the form { CID, service, factoryproc, constructorproc }
// where factoryproc is usually NULL.
static const mozilla::Module::CIDEntry kSampleCIDs[] = {
    { &amp;kSPECIALTHING_CID, false, NULL, CSpecialThingConstructor },
    { NULL }
};


static const mozilla::Module::ContractIDEntry kSampleContracts[] = {
   { SPECIALTHING_CONTRACTID, &amp;kSPECIALTHING_CID },
    { NULL }
};

// Category entries are category/key/value triples which can be used
// to register contract ID as content handlers or to observe certain
// notifications. Most modules do not need to register any category
// entries: this is just a sample of how you&#039;d do it.
// @see nsICategoryManager for information on retrieving category data.
static const mozilla::Module::CategoryEntry kSampleCategories[] = {
    { &quot;my-category&quot;, &quot;my-key&quot;, SPECIALTHING_CONTRACTID },
    { NULL }
};

static const mozilla::Module kSampleModule = {
    mozilla::Module::kVersion,
    kSampleCIDs,
    kSampleContracts,
    kSampleCategories
};


NSMODULE_DEFN(nsSampleModule) = &amp;kSampleModule;


NS_IMPL_MOZILLA192_NSGETMODULE(&amp;kSampleModule)</description>
		<content:encoded><![CDATA[<p>where to change the buildID? i change the comp-module.cpp as below,<br />
finally,there is a error show xpcomglue_s.lib(nsCOMPtr.obj) : warning LNK4099: PDB“generated.pdb”</p>
<p>#include &#8220;mozilla/ModuleUtils.h&#8221;<br />
#include &#8220;nsIClassInfoImpl.h&#8221;<br />
#include &#8220;comp-impl.h&#8221;<br />
#include &#8220;comp.h&#8221;</p>
<p>////////////////////////////////////////////////////////////////////////<br />
// With the below sample, you can define an implementation glue<br />
// that talks with xpcom for creation of component nsSampleImpl<br />
// that implement the interface nsISample. This can be extended for<br />
// any number of components.<br />
////////////////////////////////////////////////////////////////////////</p>
<p>////////////////////////////////////////////////////////////////////////<br />
// Define the contructor function for the object nsSampleImpl<br />
//<br />
// What this does is defines a function nsSampleImplConstructor which we<br />
// will specific in the nsModuleComponentInfo table. This function will<br />
// be used by the generic factory to create an instance of nsSampleImpl.<br />
//<br />
// NOTE: This creates an instance of nsSampleImpl by using the default<br />
//		 constructor nsSampleImpl::nsSampleImpl()<br />
//<br />
NS_GENERIC_FACTORY_CONSTRUCTOR(CSpecialThing)</p>
<p>// The following line defines a kNS_SAMPLE_CID CID variable.<br />
NS_DEFINE_NAMED_CID(SPECIALTHING_CID);</p>
<p>// Build a table of ClassIDs (CIDs) which are implemented by this module. CIDs<br />
// should be completely unique UUIDs.<br />
// each entry has the form { CID, service, factoryproc, constructorproc }<br />
// where factoryproc is usually NULL.<br />
static const mozilla::Module::CIDEntry kSampleCIDs[] = {<br />
    { &amp;kSPECIALTHING_CID, false, NULL, CSpecialThingConstructor },<br />
    { NULL }<br />
};</p>
<p>static const mozilla::Module::ContractIDEntry kSampleContracts[] = {<br />
   { SPECIALTHING_CONTRACTID, &amp;kSPECIALTHING_CID },<br />
    { NULL }<br />
};</p>
<p>// Category entries are category/key/value triples which can be used<br />
// to register contract ID as content handlers or to observe certain<br />
// notifications. Most modules do not need to register any category<br />
// entries: this is just a sample of how you&#8217;d do it.<br />
// @see nsICategoryManager for information on retrieving category data.<br />
static const mozilla::Module::CategoryEntry kSampleCategories[] = {<br />
    { &#8220;my-category&#8221;, &#8220;my-key&#8221;, SPECIALTHING_CONTRACTID },<br />
    { NULL }<br />
};</p>
<p>static const mozilla::Module kSampleModule = {<br />
    mozilla::Module::kVersion,<br />
    kSampleCIDs,<br />
    kSampleContracts,<br />
    kSampleCategories<br />
};</p>
<p>NSMODULE_DEFN(nsSampleModule) = &amp;kSampleModule;</p>
<p>NS_IMPL_MOZILLA192_NSGETMODULE(&amp;kSampleModule)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-1/#comment-7521</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 18 Nov 2011 12:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-7521</guid>
		<description>I met with the same error &quot;Components.classes[cid] is undefined&quot;,and it takes me a lot of time to solve.fially I changed the BuildID into current date and the whole thing works properly!
I used xulrunner 1.9.*   windows 7   Visual Studio 2008.
Hope this will help you.</description>
		<content:encoded><![CDATA[<p>I met with the same error &#8220;Components.classes[cid] is undefined&#8221;,and it takes me a lot of time to solve.fially I changed the BuildID into current date and the whole thing works properly!<br />
I used xulrunner 1.9.*   windows 7   Visual Studio 2008.<br />
Hope this will help you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajish</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-1/#comment-6381</link>
		<dc:creator>Ajish</dc:creator>
		<pubDate>Thu, 28 Jul 2011 13:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-6381</guid>
		<description>TypeError: Components.classes[cid]...
I followed the exact step...
Couple of doubts...
Will UUID and CUID be same with just difference in writing d last 2 parts as 0x...
also y this error have put .so and .xpi in every folder...but to no avail</description>
		<content:encoded><![CDATA[<p>TypeError: Components.classes[cid]&#8230;<br />
I followed the exact step&#8230;<br />
Couple of doubts&#8230;<br />
Will UUID and CUID be same with just difference in writing d last 2 parts as 0x&#8230;<br />
also y this error have put .so and .xpi in every folder&#8230;but to no avail</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Athir Nuaimi</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-1/#comment-6020</link>
		<dc:creator>Athir Nuaimi</dc:creator>
		<pubDate>Thu, 16 Jun 2011 22:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-6020</guid>
		<description>I don&#039;t believe this works with Gecko 2.0.  When you build the project, you get a number of errors including
MyComponent.cpp
  error C3646: &#039;NS_ATTR_MALLOC&#039; : unknown override specifier
MyComponentModule.cpp
  erro C1083: Cannot open include file: &#039;nsIGenericFactory.h&#039;</description>
		<content:encoded><![CDATA[<p>I don&#8217;t believe this works with Gecko 2.0.  When you build the project, you get a number of errors including<br />
MyComponent.cpp<br />
  error C3646: &#8216;NS_ATTR_MALLOC&#8217; : unknown override specifier<br />
MyComponentModule.cpp<br />
  erro C1083: Cannot open include file: &#8216;nsIGenericFactory.h&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petko</title>
		<link>http://nerdlife.net/building-a-c-xpcom-component-in-windows/comment-page-1/#comment-5953</link>
		<dc:creator>Petko</dc:creator>
		<pubDate>Thu, 09 Jun 2011 09:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://nerdlife.net/?p=259#comment-5953</guid>
		<description>Has anybody successfully compiled this with Gecko 2.0, so it can work with Firefox 4?</description>
		<content:encoded><![CDATA[<p>Has anybody successfully compiled this with Gecko 2.0, so it can work with Firefox 4?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

