Page 1 of 1

ActiveX-Runtime error 5

Posted: 20 Nov 2006 10:33
by stefo
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 :-)

Posted: 20 Nov 2006 12:23
by Odysee
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

Posted: 20 Nov 2006 15:11
by stefo
You were right.
Now, it works.

Thank you very much.

:-) RADO