How can create a DCOM object in IE ? 
Author Message
 How can create a DCOM object in IE ?

Hi,

  I'm trying to use VBScript to create a DCOM object in HTML script, while I
can
successfully call it in a windows script file. The code is just like
following:

set obj = CreateObject("MyDCOM.Test, "MyServer")

Can it be the same in HTML ? Or what setting should be made ?



Mon, 03 Feb 2003 03:00:00 GMT  
 How can create a DCOM object in IE ?
Hi,

  I'm trying to use VBScript to create a DCOM object in HTML script, while I
can
successfully call it in a windows script file. The code is just like
following:

set obj = CreateObject("MyDCOM.Test, "MyServer")

Can it be the same in HTML ? Or what setting should be made ?



Mon, 03 Feb 2003 03:00:00 GMT  
 How can create a DCOM object in IE ?
Hi Betta,
I'm not sure what you are talking about.  But if you are trying to
create a DCOM object using vbscript and HTML, you can't.  You can call
it using vbscript as you have described it.  But if you want to create
a DCOM object you must use a development environment that can
compile/create a DLL such as Visual Basic, C, C++ etc.
Tony



Quote:
> Hi,

>   I'm trying to use VBScript to create a DCOM object in HTML script,
while I
> can
> successfully call it in a windows script file. The code is just like
> following:

> set obj = CreateObject("MyDCOM.Test, "MyServer")

> Can it be the same in HTML ? Or what setting should be made ?

Sent via Deja.com http://www.deja.com/
Before you buy.


Mon, 03 Feb 2003 03:00:00 GMT  
 How can create a DCOM object in IE ?
Thanks for reply. I see. Do you mean I should re-wrap the component
in a locally called component ? I have already thought of it, but not so
willing to do it. What's the difference between windows script host and
script in IE ? Just security restriction ?
Quote:

> Hi Betta,
> I'm not sure what you are talking about.  But if you are trying to
> create a DCOM object using vbscript and HTML, you can't.  You can call
> it using vbscript as you have described it.  But if you want to create
> a DCOM object you must use a development environment that can
> compile/create a DLL such as Visual Basic, C, C++ etc.
> Tony

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Tue, 04 Feb 2003 07:46:07 GMT  
 How can create a DCOM object in IE ?
Yes, write a wrapper around the component.  About the different between
WSH and Script is that WSH is more robust and does not have the the
security restriction as in Script used in webpages. You can find out
more about it at microsoft website
http://msdn.microsoft.com/scripting/default.htm?/scripting/windowshost/d
oc/wsversion.htm

Tony



Quote:
> Thanks for reply. I see. Do you mean I should re-wrap the component
> in a locally called component ? I have already thought of it, but not
so
> willing to do it. What's the difference between windows script host
and
> script in IE ? Just security restriction ?




Quote:
> > Hi Betta,
> > I'm not sure what you are talking about.  But if you are trying to
> > create a DCOM object using vbscript and HTML, you can't.  You can
call
> > it using vbscript as you have described it.  But if you want to
create
> > a DCOM object you must use a development environment that can
> > compile/create a DLL such as Visual Basic, C, C++ etc.
> > Tony

> > Sent via Deja.com http://www.deja.com/
> > Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.


Tue, 04 Feb 2003 03:00:00 GMT  
 How can create a DCOM object in IE ?

Thanks a lot. I do wrap it ! My way is to make a COM componet that run in
IE and its fuction is to create the request DCOM object. All is okay but not
support event raised from the component. Can event be handled raised from
runtime created COM object ? Any example ?

Quote:

> Yes, write a wrapper around the component.  About the different between
> WSH and Script is that WSH is more robust and does not have the the
> security restriction as in Script used in webpages. You can find out
> more about it at microsoft website
> http://msdn.microsoft.com/scripting/default.htm?/scripting/windowshost/d
> oc/wsversion.htm

> Tony

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Tue, 04 Feb 2003 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Creating new Object in JScript (IE 4.0)

2. Create printer object in Jscript or VBScript on IE client side scrpting

3. Couldnt create IE object inVB under XP !?

4. Object cannot be created in IE but WSH

5. Object cannot be created in IE but WSH

6. calling script in a COM/DCOM object

7. Compatible WSH Objects Programing in DCOM\C++ ????

8. How do I create a canned form?

9. Canned objects and/or images

10. Object loading in IE 5.5 differ from IE 5.0

11. problem creating multiple objects using DCOM

12. dcom object runs fine in vb app, fails to get created in IIS

 

 
Powered by phpBB® Forum Software