Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Unable to create an instance of the desired COM classCOM

Reply
Thread Tools

Unable to create an instance of the desired COM classCOM

 
 
nityaprakash.sharma@gmail.com
Guest
Posts: n/a
 
      10-06-2006
Hi,

I am trying to create object Media Player in javascript for Netscape
browser. For this i have written follwoing code.

var player
try
{
if( window.GeckoActiveXObject )
{
player= new
GeckoActiveXObject("MediaPlayer.MediaPlayer.1");
}
else if( window.ActiveXObject )
{
player = new ActiveXObject("MediaPlayer.MediaPlayer.1");
}
alert( cInfo );
}
catch( Exception )
{
document.writeln( Exception );
}

Above code giving following error when i load this page in Netscape
browser.

[Exception... "Unable to create an instance of the desired COM classCOM
Error Result = 80004005" nsresult: "0x80570039
(NS_ERROR_XPC_COM_CREATE_FAILED)" location: "JS frame ::
http://localhost/siteOne/ClientInfo.aspx :: LicenseDown :: line 20"
data: no]

Please help me if anybody knows the cause of the error and how to
resolve.
Thanx in advance.

nps

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to create with my desired username Naved Computer Support 2 03-29-2008 06:35 PM
Can you create an instance of a subclass with an existing instance of the base class? Sandra-24 Python 18 04-29-2006 04:01 PM
Can't parse desired text from file after opening .Net Sports ASP .Net 2 01-20-2006 10:00 PM
PInvoke, load library from desired folder? Edwin Knoppert ASP .Net 3 11-16-2005 05:06 PM
Asynchronous Messages (using JMS) improves performance even when the desired comm. mode is synchronous eJAYBee Java 0 12-10-2004 08:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57