Please tell me how to fix this error, or if that's not possible, have the developers release a version that will not produce this error.'C:\Program Files (x86)\VideoLAN\VLC\axvlc.dll' could not be loaded.
Please tell me how to fix this error, or if that's not possible, have the developers release a version that will not produce this error.'C:\Program Files (x86)\VideoLAN\VLC\axvlc.dll' could not be loaded.
Code: Select all
Dim m_axVLC As VBControlExtender
set m_axVLC=Controls.Add(<location of axvlc.dll>, "m_axVLC")
With m_axVLC.object
.toolbar=True
.playlist.Stop
.playlist.Items.Clear
.playlist.items.add <file>
.playlist.play
'etc. etc.
end with
' control properties such as .height, .width, etc. can be set directly like this (no .object reference required)
m_axvlc.top = <number>
' this is how you size the playing window of the control because it is only added at runtime.
Code: Select all
set m_axvlc=nothing
In the 32-bit folder for program files. Don't forget to re-register the dll every time you update VLC.regsvr32 - u axvlc.dll
I misread my notes. Sorry.
In the post above, replace the statement
set m_axVLC=Controls.Add(<location of axvlc.dll>, "m_axVLC")
with
set m_axVLC=Controls.Add("VideoLAN.VLCPlugin.2", "m_axVLC")
You still need to have axvlc.dll registered using regsvr32.exe. Tested with the latest nightly build (VLC 2.20) and is OK.
Doesn't appear you actually tested your code before recommending it.Your approach does not work with v2 of axvlc.dll.
Instead, use dynamic addition of the dll at run-time (through the VBControlextender interface) and access the properties from the .object property.
For example, like this in a FORM_LOAD (VB6):Code: Select all
Dim m_axVLC As VBControlExtender set m_axVLC=Controls.Add("VideoLAN.VLCPlugin.2", "m_axVLC") With m_axVLC.object .toolbar=True .playlist.Stop .playlist.Items.Clear .playlist.items.add <file> .playlist.play 'etc. etc. end with
Users browsing this forum: No registered users and 5 guests