ActiveX distribution

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
doerrst
New Cone
New Cone
Posts: 2
Joined: 27 Sep 2006 10:07

ActiveX distribution

Postby doerrst » 27 Sep 2006 10:16

Hi,

i try to create a automatic player which can be used on cds. For this i want to use the active-x plugin in my vb.net 2005 program. It works fine if i use it on my own system where vlc is installed, but if i copy the files to another system the control causes a program crash. Do i need to install the player on the destination system or do i just something wrong? The files i copied to the destination system are:
- TestPlayer.exe
- Interop.AXVLC.dll
- AxInterop.AXVLC.dll
- axvlc.dll
- libvlc.dll
- vlc.exe
and the complete plugins folder.

Starting the vlc.exe on the destination system works fine.

Have i forgot any file which causes the crash?

Regards,



Stefan

karlar
Blank Cone
Blank Cone
Posts: 73
Joined: 12 Jun 2006 12:25

Postby karlar » 27 Sep 2006 10:52

Hey sounds cool, i was thinking about make something like that.

Just a long shot have you registere the axvlc.dll + (perhaps all the .dll but not sure) with regsvr32. I dont know if thats needed at all.

nkarnold
Blank Cone
Blank Cone
Posts: 12
Joined: 20 Sep 2006 13:47

Postby nkarnold » 28 Sep 2006 23:12

I've managed to get what your trying to do working in VB 2005.

using a project type of 'Setup and Deployment'

Include the files you have listed
But two important things
You must set the file axvlc.dll Register property to vsdrfCOMSelfReg
This will ensure the Active-X Control is registered.

Next is the plugins, the way I've done it, is to put the plugins into a directory c:\program files\my program name\plugins

You must then createa registry key, again in the setup and deployment project (under the Editor->Registry)
HKLM\Software\VideoLAN\VLC\InstallDir
and I point this to [ProgramFilesFolder]my program name

Notice it doesn't point to the plugins dir. The activex looks for a directory below the InstallDir for a directory call plugins.

It works great, Ive deployed my app to virgin Win2K, XP PC's and it all fine.

If you need any help.. happy to share the info.

doerrst
New Cone
New Cone
Posts: 2
Joined: 27 Sep 2006 10:07

Thanks

Postby doerrst » 29 Sep 2006 07:47

Thanks - i will try that, but creating registry keys in HKLM and registering dll's is in the most cases not possible because the users doesn't have admin-rights on their clients. If this is needed i need to find another solution for that.

Thanks again for your help.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 11 guests