Page 1 of 1

VLC 1.1.0 don't work with Visual Basic 6

Posted: 29 Jun 2010 15:48
by ade74
Hi, I have created a Visual Basic 6 appication with VLC 1.0.5.
I have used AXVLC.DLL (VideoLan VLC ActiveX Plugin 2).
If I install VLC 1.0.5 and in Visual Basic 6 import a AXVLC.DLL (Project -> Components -> and select "VideoLan VLC ActiveX Plugin") there is no problem.
If I install VLC 1.1.0 in Visual Basic 6 I show an error when I import a component: "Name already used by module, project or object library already exists".
A AXVLC.DLL have changed from 1.0.5 to 1.1.0?

Re: VLC 1.1.0 don't work with Visual Basic 6

Posted: 30 Jun 2010 12:56
by ade74
I'm waiting for a solution. In the meantime, for people who have the same problem, I solved directly using in Visual Basic 6 the DirectShow of DirectX without a VLC ActiveX (search on Google).

Re: VLC 1.1.0 don't work with Visual Basic 6

Posted: 02 Jul 2010 11:40
by nexgen
Idem! I have same problem with vb6 and vlc activex!

HELP!!!

Re: VLC 1.1.0 don't work with Visual Basic 6

Posted: 08 Jul 2010 11:18
by neil00
First, i'm sorry for my (poor) english.

The solution is to create a dynamic VLC control.

Create a new projet with a form (called frmVlcTest) and a module with the Main procedure.
It is unnecessary to add the VLC Plugin reference.

Here is the code :

Code: Select all

Sub Main() Dim oVlc As VBControlExtender Dim fIniTimer As Single Load frmVlcTest frmVlcTest.ScaleMode = vbPixels frmVlcTest.Show Set oVlc = frmVlcTest.Controls.Add("VideoLAN.VLCPlugin", "ctrlVlc", frmVlcTest) oVlc.Move 100, 100, 400, 300 oVlc2.Visible = True oVlc.object.playlist.Add "path_to_media_file" oVlc.object.playlist.play fIniTimer = Timer Do DoEvents Loop Until Timer - fIniTimer > 3 oVlc.object.playlist.stop DoEvents ' very important unless the exe program or the vb interface crashes Set oVlc = Nothing frmVlcTest.Controls.Remove "ctrlVlc" ' very important unless the exe program crashes Unload frmVlcTest End End Sub
I have not explored all possibilities but it is a good start. :wink:

Re: VLC 1.1.0 don't work with Visual Basic 6

Posted: 07 Aug 2010 17:27
by Pino1946
Hi,

your Sub Main works well, so I have an other question.

The VLC Plugin (every version) works, with VB, only when VLC is installed; if VLC is uninstalled, the movie is not played and no error message appears.

There is a method / way to let Plugin work with VB even if VLC is not installed ?

And ... is an ocx available ?

Thank you in advance.

Pino

Re: VLC 1.1.0 don't work with Visual Basic 6

Posted: 16 Sep 2010 09:25
by neil00
Hi,

I think VLC must be installed because of the DLL's have to be registered to work correctly. OCX cannot be a standalone file to read media files, DLL's are needed to work.

I use Inno Setup + IS Tools to deploy VB apps. VLC installer is included in the installation package and is installed silently. I read some posts about CAB files to deploy VLC in this forum. But i prefer my solution...

I'm sorry to answer you so late