use vb6 ActiveX ocx in IE6 
Author Message
 use vb6 ActiveX ocx in IE6

Hello,

I have created a small test ocx that I want to use in IE 6 . This control
needs a few parameters ( dabasename/login/password/language ...) . But for
some reason I think the parameters are not passed .

When I open the html then the UserControl is shown but the let-functions are
not executed . How could this be ?

Hoping to hear from you .

<html>
<head>

<TITLE>test applicatie hotscreen dyn</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">

</head>

<BODY>
<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="hotdyn.lpk">
</OBJECT>

<OBJECT CLASSID="clsid:0F440BFD-FA28-4E37-8B79-9388AE27F2F1"
WIDTH=2000 HEIGHT=2000>
<PARAM NAME="DatabaseLogin " VALUE="SYSADM">
<PARAM NAME="DatabaseName" VALUE="QC">
<PARAM NAME="DatabasePasword" VALUE="PEN">
<PARAM NAME="UserName" VALUE="FWT">
<PARAM NAME="Language" VALUE="1">
<PARAM NAME="HotKey" VALUE="1">
<PARAM NAME="HotChapterKey" VALUE="1k">
<PARAM NAME="Go" VALUE="0">

</OBJECT>

</BODY>

</html>

ps . the first Object , is a license Object ... With or without the Tag I
get the same result .



Fri, 22 Jul 2005 15:53:07 GMT  
 use vb6 ActiveX ocx in IE6
My guess is that properties are considered functions, and are not Params...
This (below) method of setting a property worked for me...

<html>
<head>
<TITLE>test applicatie hotscreen dyn</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
</head>
<BODY>

<OBJECT CLASSID="clsid:{49F9F1E7-7A52-4127-9BDA-36847D411BD2}"
WIDTH=500 HEIGHT=500 id="TestOCX">
</OBJECT>

<script LANGUAGE=VBScript>
    TestOCX.MyProp = "This is a test"
</script>

</BODY>
</html>

D.


Quote:
> Hello,

> I have created a small test ocx that I want to use in IE 6 . This control
> needs a few parameters ( dabasename/login/password/language ...) . But for
> some reason I think the parameters are not passed .

> When I open the html then the UserControl is shown but the let-functions
are
> not executed . How could this be ?

> Hoping to hear from you .

> <html>
> <head>

> <TITLE>test applicatie hotscreen dyn</TITLE>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">

> </head>

> <BODY>
> <OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
> <PARAM NAME="LPKPath" VALUE="hotdyn.lpk">
> </OBJECT>

> <OBJECT CLASSID="clsid:0F440BFD-FA28-4E37-8B79-9388AE27F2F1"
> WIDTH=2000 HEIGHT=2000>
> <PARAM NAME="DatabaseLogin " VALUE="SYSADM">
> <PARAM NAME="DatabaseName" VALUE="QC">
> <PARAM NAME="DatabasePasword" VALUE="PEN">
> <PARAM NAME="UserName" VALUE="FWT">
> <PARAM NAME="Language" VALUE="1">
> <PARAM NAME="HotKey" VALUE="1">
> <PARAM NAME="HotChapterKey" VALUE="1k">
> <PARAM NAME="Go" VALUE="0">

> </OBJECT>

> </BODY>

> </html>

> ps . the first Object , is a license Object ... With or without the Tag I
> get the same result .



Sat, 23 Jul 2005 01:47:17 GMT  
 use vb6 ActiveX ocx in IE6

Quote:

> Hello,

> I have created a small test ocx that I want to use in IE 6 . This
> control needs a few parameters ( dabasename/login/password/language
> ...) . But for some reason I think the parameters are not passed .

> When I open the html then the UserControl is shown but the
> let-functions are not executed . How could this be ?

<PARAMS> do not call the property let methods. They must be readed in the
ReadProperties event. And if you do not register the object as sefe for
initializing that will cause an error in IE and the control won't be
displayed.

--
Eduardo A. Morcillo [MS MVP VB]
http://www.domaindlx.com/e_morcillo



Sat, 23 Jul 2005 06:54:39 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. use vb6 ActiveX ocx in IE6

2. vb6 activex ocx components used in multi-threaded client application

3. Problem when upgrading from IE6 SP0 to IE6 SP1

4. IE6 and DHTMLED.OCX

5. ActiveX login doesn't work with WebBrowser control, but is fine in IE6

6. Problem ActiveX Controls in IE6.0

7. ActiveX login doesn't work with WebBrowser control, but is fine in IE6

8. ActiveX Control not being Displayed in IE6.0

9. VB6 SP4 and Windows 98 with IE6 - Memory problems ont client machines

10. VB6 / IE6 / flexgrid / cellfontbold problem

11. Problem with IE6 after installing VB6

12. VB6 SP4 and Windows 98 with IE6 - Memory problems ont client machines - take 2

 

 
Powered by phpBB® Forum Software