Page 1 of 1

Activex and adtarget options in vb6

Posted: 16 Oct 2005 22:20
by chx2k
Hi,

I'm using the activex in vb6 and I'm trying to pass a couple options throught the adtarger's options argument, but I noticed that I can pass only the first one.

Is this how it should work or it's a bug?

here is an example of what I tried.


Dim options() As Variant
options() = Array(":snapshot-path=c:\snapshots",":input-repeat=1")
VLCPlugin1.addTarget "c:\myvideos\video.mpg", options, VLCPlayListAppendAndGo, -666

and the snapshot-path was set correctly, then I tried this:

Dim options() As Variant
options() = Array(":input-repeat=1",":snapshot-path=c:\snapshots")
VLCPlugin1.addTarget "c:\myvideos\video.mpg", options, VLCPlayListAppendAndGo, -666

and the snapshots-path did not get set.

This is just an example, I tried with other options and same thing happened only the first option was set.

Am I passing the options wrong, is this how it should work or it's a bug?

I'm using nightly build 20051015.

Thank you.

Posted: 17 Oct 2005 16:39
by Quovodis
this is a bug, last element of array was never processed

a fix has been committed,

you should download the nightly build post 17th October 2005

for subversion users:
it has been fixed in SVN as revision 12870

thanks for the report

Posted: 17 Oct 2005 18:16
by chx2k
Thank you!