I'm trying to use VLC from excel . I made a VBA application and I would like to show the user video from a usb microscope and allow them to take screenshots of that output.
I have already described my issue in a Stack Overflow thread here
http://stackoverflow.com/questions/3930 ... n-free-com
One confounding issue is that I do not have admin rights on my dev computer so I'm using VLC from a zip file and haven't run the installer.
I added the reference to axvlc.ddl manually.
I also tried registering it using
Code: Select all
regsvr32 axvlc.dll
For example.
In a module I create the following subroutine
Code: Select all
Sub VLC()
Dim myVlC As New AXVLC.VLCPlugin2
myVlC.Visible = True
myVlC.playlist.Add (ThisWorkbook.Path & "\demo.mov")
myVlC.playlist.Play
End Sub
Code: Select all
myVlC.Visible = True
Code: Select all
Run-time error '429':
ActiveX component can't create object
Code: Select all
Sub VLC()
Dim actCtx As Object
Set actCtx = CreateObject("Microsoft.Windows.ActCtx")
actCtx.Manifest = ThisWorkbook.Path & "\vlc\axvlc.dll.manifest"
Dim myVlC As Object
Set myVlC = actCtx.CreateObject("AXVLC.VLCPlugin2")
myVlC.Visible = True
myVlC.playlist.Add (ThisWorkbook.Path & "\demo.mov")
myVlC.playlist.Play
End Sub
Code: Select all
Set myVlC = actCtx.CreateObject("AXVLC.VLCPlugin2")
Code: Select all
Run-time error '429':
ActiveX component can't create object
I am quite stuck at this point but please let me know if you have any idea what else to try.
Thanks !