tags:

views:

270

answers:

2

Hi guys,

I'm using this EDIMAX IP Cam (IC-1520DP) which has a browser based administration. When I first login, It ask me to install an OCX (IPCamPluginMJPEG.ocx). Now I wanna use this OCX so I can have the camera displayed on a form in VB6, I can add a reference to the OCX and everything is fine but I can't initialize or use it at all since its asking for some parameters that are being passed to it by the PARAM html tag when It was used in IE.

Obviously I can't use the PARAM tag in VB6, so is there any other way I can pass the parameters?

Or do you have better ways to display the live camera feed on a form in VB6? The camera also has this CGI command that returns One multipart JPEG video stream but I totally don't have any idea how to use it.

+1  A: 

It's simple: Take the name attribute of the param tag and set the same property of the ActiveX control with the value of the value attribute. Like this:

Sub Form_Load()
    MyControl.Param = Value
    ...
End Sub
wqw
+1. The attributes may also appear in the VB form designer properties window.
MarkJ
A: 

Hi,

I want to do the same thing.

But the option like above "MyControl.Param = Value" does not work, and the attributes are not appearing in the vb designer environment.

eg. in html you have the PARAM IP=... but thes attribute is not available when adding the ocx to the vb project. So in vb you can not set this attribute so the ocx is useless. :s

Does someone has a solution?

wipo