Thread Closed

#1
Would it be possible to get an explanation of how to use a DLL file in Firefox using JavaScript?

I have downloaded the source code for MinimizeToTray Plus (MTTP), but quite honestly it's a lot of code in there.

I came across the addon while looking for a way to hide Firefox from the taskbar using an addon, and MTTP is the closest I have found so far.

I'm quite (on the beginner level) familiar with Firefox addons, C++ (writing DLL's) and Win32 APIs. I just don't know how to use a DLL from JavaScript. It does seem like IDL has something to do with it.
ReportQuote
#2
What you want to look into is XPCOM, Mozilla's glue that allows you to use one language from another. Currently C++, Javascript, Python, Perl, Java and Ruby are supported I think.

The developer.mozilla.org page is https://developer.mozilla.org/en/xpcom

If you have any more specific questions I can help you with them.

Where in the Win32 APIs does it explain how to remove a window from the taskbar. I could not find anything that would allow that, except hiding the window completely. I wanted to use it for something.

Have I helped you? Do you like my add-ons?
Would you consider donating to show your appreciation for my efforts?

/images/paypal.png
ReportQuote
#3
Maybe there isn't way to actually do that.
I did find this that seems at least related:
http://msdn.microsoft.com/en-us/magazine/cc301403.aspx
ReportQuote
#4
Looks like that might work, if you can some how inject it into the Mozilla code for creating a window. I don't know enough C++ to know how to do that though.

Have I helped you? Do you like my add-ons?
Would you consider donating to show your appreciation for my efforts?

/images/paypal.png
ReportQuote
#5
I've managed to compile C++ into a DLL and call the functions from JavaScript, but that's about it so far.

How do you manage the project? Do you use Visual Studio?
I find all the things VS adds to my project confusing.

I found this site http://www.iosart.com/firefox/xpcom, and it has a make file for Windows which seems awesome. Unfortunately it doesn't work.
ReportQuote
#6
I am using Visual Studio on Windows, and Eclipse on Linux. They do take some getting use to, but I find they help once you know how to use them effectively.

I tried to get a working make file going, but something always messed up. Or I found something else more interesting to work on instead.

Have I helped you? Do you like my add-ons?
Would you consider donating to show your appreciation for my efforts?

/images/paypal.png
ReportQuote
#7
I guess someone could create one, but non exist as far as i know.

Have I helped you? Do you like my add-ons?
Would you consider donating to show your appreciation for my efforts?

/images/paypal.png
ReportQuote

Thread Closed