Re: Loading dynamic libraries from xp component

2006-04-28 Thread dimuthu
> Sounds like > http://developer.mozilla.org/en/docs/Using_Dependent_Libraries_In_Extension_Components > would help? (Sorry, that doesn't quite fit on one line...) > > HTH > > -- > Mook > mook dot moz plus stuff at gmail Thanx for the link. I will check this out.

Loading dynamic libraries from xp component

2006-04-27 Thread dimuthu
ve an idea of getting rid of this problem... Thanx:) Regards Dimuthu ___ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom

Re: Calling JavaScript from XPCOM components.

2006-04-06 Thread dimuthu
hi, There are functions very simillar to what you expected in js engine. try on JS_ExecuteScript(cx, globalObj, script, &result); JS_EvaluateScript(cx, globalObj, source, strlen(source), filename, lineno, &rval); There is a mightly help page i

Re: Exception throwing in xpcom f1

2006-04-06 Thread dimuthu
hi, Thanx for your suggesion. It actually fix the stuff. Earlier I was returning directly from SetCurrentException i.e: return xm-> SetCurrentException (e ); That was wrong. this always return NS_OK since the function success. when i returning the actual failure code it works.

Exception throwing in xpcom f1

2006-04-06 Thread dimuthu
Hi, I wrote a code that can raise exception from c++ xpcom and handle the exception in javascript. It is compiling well. but is not working. i.e. js never catch any exceptions *my code for raise exception is like this (in short) nsCOMPtr xs = do_GetService(NS_EXCE