ActiveX-Runtime error 5

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
stefo
Blank Cone
Blank Cone
Posts: 20
Joined: 16 Nov 2006 14:54

ActiveX-Runtime error 5

Postby stefo » 20 Nov 2006 10:33

Hello all,

I would like to ask you for a advice.
I'm using the activeX in my VB6 application.
I want to play some videos by VLC player.
For exemple :
v.addTarget "C:\Program Files\VideoLAN\VLC\Bear.3gp", Null, VLCPlayListAppendAndGo, -666
v.play

The code above works OK,but if I modify the Item options, the error appears "Runtime error: 5, Invalid procedure call or argument"

I used the following code:
v.addTarget "C:\Program Files\VideoLAN\VLC\Bear.3gp", ":vout-filter:deinterlace", VLCPlayListAppendAndGo, -666 '
v.play

Can anybody help me?
Thank you in advance.

RADO :-)

Odysee
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Oct 2006 17:18
Location: Germany

Postby Odysee » 20 Nov 2006 12:23

Hi,

I think the options must be an Array of strings:

Dim szOptions(0) as String
szOptions(0) = "":vout-filter:deinterlace"

v.addTarget "C:\Program Files\VideoLAN\VLC\Bear.3gp", szOptions, VLCPlayListAppendAndGo, -666

stefo
Blank Cone
Blank Cone
Posts: 20
Joined: 16 Nov 2006 14:54

Postby stefo » 20 Nov 2006 15:11

You were right.
Now, it works.

Thank you very much.

:-) RADO


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests