Page 1 of 1

Problem registering axvlc.dll on a windows 10 PC

Posted: 04 Sep 2024 14:01
by orionis
Hi, I'm trying to update a quite old Media Player app I wrote years ago with VB6 (I know, this is history, but it's fine for me).
The original app was perfectly running on a Win 7 PC and it was using the MCI component.
Now I want to use VLC as player component since with Win10 there is no way to use MCI anymore.
My problem is I can not register the DLL; I copied the axvlc.dll from my PC program VLC folder into both System32 and SysWow64; when I give the command from inside the CMD window:
> C:\\windows\SysWow64 (or even in System32)
regsvr32 axvlc.dll
I ger the error: "Unable to load the specified module" (or something similar, it is in Italian)

I tried to add the reference to the DLL from the Reference windows; it does not return any error.
I also copied the the axvlc.dll inside my app folder; strangerly the reference windows still only shows the dll from the SysWOW64 folder and never from my app.

In my VB app I have these lines:
[in a BAS module] Public VLCplayer As AXVLC.VLCPlugin2
[in the main form] Set VLCplayer = New AXVLC.VLCPlugin2
This last line gives a 'Not registered interface' error; actually, the Espression Control window reporte an empty object at this line.

So the question: how can I register the dll? (or there is a different way) ?
Thanks

Re: Problem registering axvlc.dll on a windows 10 PC

Posted: 04 Sep 2024 14:22
by Lotesdelere
Maybe you're trying to install the 32-bit version on a 64-bit system, or vice versa.
BTW, you must specify the whole path of the DLL:
regsvr32 C:\windows\SysWow64\axvlc.dll

On a side note, ActiveX is outdated and deprecated, not supported by Microsoft and by recent browsers anymore, and no one should still use ActiveX nowadays.

Re: Problem registering axvlc.dll on a windows 10 PC

Posted: 04 Sep 2024 22:47
by orionis
Actually I'm installing the 32bit version of DLL (tried various releases, i.e. 1.1, 2.0, 2.1...) to be used by my VB6 program, a 32bit app.
That is in the SysWOW64 folder of my Win10 (64bit) PC.
Specifying the whole dll path with RegSvr32 or not does not change anything; the error message is the same.

A side note: my VB6 App works fine and smoothly with MS Media Player; unfortunately, I don't lile Media Player, I can not fully understand the cryptic MS documentation and finally it lacks of some nice VLC features. At the end, if I can not fix the registration issue I will be forced to use Media Player

Re: Problem registering axvlc.dll on a windows 10 PC

Posted: 05 Sep 2024 12:13
by Lotesdelere
Try to register it from another location because the SysWow64 folder might be somehow protected.

Re: Problem registering axvlc.dll on a windows 10 PC

Posted: 05 Sep 2024 17:42
by orionis
No way, there is an added problem in VB6.
If I delete the DDL from SysWOW64 and then in VB6 I try to reference the DLL which is inside my local app folder, VB6 still shows it in syswow64, never at the path I gave.
I played a little with RegEdit trying to find where the DLL is defined and stored, without success.

A last hope and invocation: is there any VLC user who has manually registered the dll (32 or 64bit) in Windows 10 64 bit?
I repeat here my failing attempt (CMD window at C:\\windows\SysWow64):
regsvr32 C:\\windows\SysWow64\axvlc.dll

if not, I think I'll give up...sorry for the fantastic VLC.

Re: Problem registering axvlc.dll on a windows 10 PC

Posted: 06 Sep 2024 12:13
by Lotesdelere
regsvr32 C:\\windows\SysWow64\axvlc.dll

Notice the \\ after C:
There should be only one \
I don't know how you got this but I'm not sure that would work.

Anyway, that looks like more a Windows problem to me than a VLC trouble.