What is Toluu?
Toluu is a free service for sharing the feeds you read and discovering new ones.
Get Invite

CPP | Tribe.net

Tribe.net. Local Connections


grr -- anyone experienced in building Firefox plugins in C++, on Windows / OSX?January 11 2008

I feel so stupid. I'm a professional C++ developer, and i've been doing it for years and years. Now I have to write a Firefox plugin (NPAPI) in C++, which sounded easy enough, but after 2 days, I just can't get anything built. The documentation on developer.mozilla.org is often very confusing, a lot of info doesn't seem to be there at all, and i'm growing more frustrated by the day. This is _supposed_ to be easy. Writing an ActiveX control using the ATL in C++ for IE is dead simple to me (i've done it literally dozens of times over the years), but writing a plugin in C++ for Firefox is proving to be quite a frustrating endeavor. Searching the archives of the Mozilla dev-tech-plugins list only shows a few others complaining like I am, with no responses offered. The samples in the mozilla tree don't seem to build much of anything, no DLLs / bundles are generated on Windows / Mac OSX (the two platforms I need to target the most) ... sigh.

Can anyone point me to a code sample (hopefully simple for the obviously brain-dead developer I am) for a Firefox plugin that is known to build on Windows and OSX? What steps did you take to build it, and how did you install it?

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com

posted in C++ - 3 replies












how to code the deblur image algorithmNovember 21 2007
Hi All,

I am studying about the deblur image algorithm to deblur a blurred image. It uses blind deconvolution algorithm.

In the Matlab, deblur image is showing :
1) Create Point Spread Function (PSF) that Gaussian is usually used.
2) using Deconblind function = blind deconvolution to deconvolve blurred image with PSF.
............

So i am in the process of translating my matlab code into C to run on the Parallel system.
I was wondering if there are C function available for these process (deconvblind).

Anyone have any ideas on this ???

Thank you,
posted in C++ - 0 replies














a bit of fun: which is more metal -- C++ or Java?May 24 2007

Hello, all ...

As frivolous an exercise as it may seem, I (developing the client piece of an app) am engaged with a comrade (developing the server piece of the same app) on this topic: Which language is more "metal" e.g. which language would the members of DethKlok (http://www.adultswim.com/shows/metal/) code in, should they choose to?

Defending C++, I submit that it is more metal, due to the following:

1. it has crosses in the name, and everyone knows that crosses are way more metal than coffee
2. C++ developers generally code more to the "metal" (or wire) than Java developers
3. C++ has DESTRUCTORs, which just sounds way more metal than Java's "finalize"
4. C++ can be brutal, with pointers to const members, changing vtables, etc.

My coworker claims that Java is actually more metal, but I can't remember any of his reasons ;-)

Thoughts?

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
posted in C++ - 4 replies






















1099 issuesApril 27 2007
So how do you guys handle your taxes? I'm so confused!
posted in C++ - 2 replies
Please help ASAP / File I/O displaying graphApril 3 2007
Please have a look at the following code:

---------------------------------------------------------------------------------------------------------

#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>

void printMonth(int month);
void PrintaLine(int, char);
void SkipLines (int);
void indent (int);

// PRECONDITION: month holds an integer 1-12
// POSTCONDITION: the corresponding month (Jan, Feb, ..., Dec) has been
// printed to the standard output.

ifstream infile1("input1.txt");
ifstream infile2("input2.txt");
ofstream outfile("output.txt");

int main()
{
string month[12];
double rainfall[12]; //this year's rainfall for each month
double averages[12]; //average rainfalls for each month
int currentMonth; //what month is it? 1-based

//
// Get the average rainfall for each month, Jan-Dec
//
// Read the in put files 1 and 2
for (int i=0; i<12; i++)
{
infile1 >> month[i] >> rainfall[i];
}
for (int j=0; j<12; j++)
{
infile2 >> month[j] >> averages[j];
}
PrintaLine (65, ':');
indent(10);
outfile &lt;< "The table shows the month avge and the diff\n";
PrintaLin