MozNET:  (02/17/2012)
.Click() is coming!
Starting with R19.3, MozDomElement and derivatives will support their own .Click() method!


MozNET:  (12/17/2011)
MozNET R19.2 is available! Recommended update.
Incremental bug fixes and enhanced inline CSS access on elements.
New Software:   
Win7Lib is the newest member of the Se7en Soft title line-up. This programming library gives you access to some of Windows 7's most secret of secrets!
New Software:  
Note Magic has just been released. Enhance your Windows 7 Sticky Notes experience!
MozNET:  
New MozNET tutorial posted!
Use MosStringBundleService to localize your applications.
 
Follow Se7en Soft On Twitter:
     Twitter.com/Se7enSoft

Did You Know...
... helminthophobia is the fear of worms?
MozNET Tutorial - Register A Custom Component : AIO Specific

This short tutorial will describe the steps you need to follow in order to register and unregister XPCom components when using the AIO build. It's a very simple process and I'll have you up and running with the ball in no time.

A Good Text Editor

First thing first. We need a decent, light-weight, text editor. While Visual Studio is great for working with code files it's a bit overkill for what we're doing here. A good editor to use would be something such as Programmer's Notepad or Nodepad++ or something similar. I use Programmer's Notepad, myself. It's free, light-weight, and has quite a few features. I'm sure you have you're own preference for text editors so feel free to use your favorite.
Let's get started...

A Simple Configuration

To register your components with the MozNET AIO build you need a configuration file to tell MozNET what you want to do. All you need is a text file that has the extension of xcg. That's it. Simple, eh?

Oh, yeah. You're probably wondering what to put in that file, eh? That's simple enough, too.
Here's a very simple example of a proper config file:

//This is a comment line
#This is also a comment line

// | is meant as an 'or' here - it's one or the other, use a bit of common sense ;)

[upgrade]
//myOldComponent.dll|js|xpt, myNewComponent.dll|js|xpt
//myOlderComponent|js|xpt, myNewerComponent|js|xpt

[register]
myNewestComponent.js, myNewestComponent.xpt
myOtherNewComponent.dll, myOtherNewComponent.xpt
myManagedComponent.xpt

[unregister]
myOldestComponent.dll, myOldestComponent.xpt
myBrokenManagedComponent.xpt
        


Not a whole lot to it, eh? All you need to do is place your configuration file into a subfolder of your output/install/bin directory and put all the component files that you want registered or upgraded into the folder with it. You're done. MozNET will find the file and do the work. Just as a note, a good file name for this configuration file is 'moz.cfg'. This allows your application to update its components with a simple restart.



SSL Logo
ASPCA.org
Visitor IP: 38.107.179.211
Copyright (c) 2009 - 2011 Se7en Soft   :  All Rights Reserved  |  Privacy Statement