-
Mar 22nd, 2015, 03:14 PM
#1
Thread Starter
Frenzied Member
DVD Videos
VLC ActiveX Control (axVCL.dll): Does it not work with VB6? I installed it and it shows up in the component selection box. However, when I select it, there is a warning about name conflict.
I want to try this control because the Windows Media Player (WMP) control works on Windows 7 and prior OS. WMP will not work on Windows 8 because I believe that Windows 8 does not come with a standard DVD decoder (research from google).
Need help on getting the VLC control to work or another recommendation on a control to play DVD videos.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Mar 23rd, 2015, 05:34 AM
#2
-
Mar 23rd, 2015, 01:59 PM
#3
Re: DVD Videos
I'm sure Windows 8 has Windows Media Player though I've never really used it I use VLC on all computers. Why not play the movie/file with ShellExecute API then it will use the default player?
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Mar 23rd, 2015, 02:06 PM
#4
Thread Starter
Frenzied Member
Re: DVD Videos
Thanks Peter, I will look into that control.
KeithUK, DVD won't play in Windows 8.
http://windows.microsoft.com/en-CA/w...-playback-help
Therefore, I can't use the wmp.dll activeX control.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Mar 23rd, 2015, 09:18 PM
#5
Thread Starter
Frenzied Member
Re: DVD Videos
Peter, I registered it and when try to play, "No such interface supported."
Here is basic code to load:
Code:
Option Explicit
Private Sub Form_Load()
txtDVDFolder.Text = "E:\"
End Sub
Private Sub Form_Click()
With MSWebDVD1
.DVDDirectory = txtDVDFolder.Text
.Play
End With
End Sub
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Mar 24th, 2015, 06:23 AM
#6
Re: DVD Videos
When I try your code I get a different error:
-2147024809
The parameter is incorrect.
When I use "e:\\video_ts" instead of "e:\", your code works. Try that.
-
Mar 24th, 2015, 12:45 PM
#7
Thread Starter
Frenzied Member
Re: DVD Videos
Still the same problem. Were you able to do this in VB6 & Windows 7 (32 bit)?
It is just as simple as register mswebdvd.dll and then selecting the component and then use the code above right? I am a bit confused why mine doesn't work.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Mar 24th, 2015, 01:54 PM
#8
Re: DVD Videos
It works for me under Windows 7 64 bit and I'm afraid I'm out of ideas on how to help you.
-
Mar 25th, 2015, 03:18 AM
#9
Thread Starter
Frenzied Member
Re: DVD Videos
Finally got this to work Peter.
So here is the story. I have VB6 in a VirtualBox environment with 32 bit. I can't get the control to play but when I compile into an exe and run it on a 64 bit, then it worked. Of course, no sounds so I installed an AC3 filter and that took care of it too.
I did notice when running in 64 bit, it flashes and then said that the "color scheme has been changed to windows 7 basic".
Regardless, makes me wonder if my virtual environment is not working properly.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Mar 25th, 2015, 08:14 AM
#10
Re: DVD Videos
Originally Posted by Liquid Metal
Finally got this to work Peter.
So here is the story. I have VB6 in a VirtualBox environment with 32 bit. I can't get the control to play but when I compile into an exe and run it on a 64 bit, then it worked. Of course, no sounds so I installed an AC3 filter and that took care of it too.
I did notice when running in 64 bit, it flashes and then said that the "color scheme has been changed to windows 7 basic".
Regardless, makes me wonder if my virtual environment is not working properly.
Why are you running Visual Basic 6.0 in VirtualBox? It seems to run fine for me without a virtual machine. I think the color scheme changing to Windows 7 basic has to do with your program's compatibility settings. Right click the executable file in Explorer, open the Compatibility tab and check whether "Disable Visual Themes" is checked.
-
Mar 26th, 2015, 04:39 AM
#11
Thread Starter
Frenzied Member
Re: DVD Videos
Why am I running VB6 in VirtualBox? Well, I don't use it much so I just install it there.
I did your suggestion on the "Disable Visual Themes". Still did not work. Seems to be a common thing:
http://www.sevenforums.com/tutorials...e-disable.html
At least I got the main thing to work and now will test on Windows 8 soon. The ultimate test since WMP.dll did not work in Windows 8.
Thanks
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Mar 26th, 2015, 05:00 AM
#12
Thread Starter
Frenzied Member
Re: DVD Videos
BTW Peter,
Did you set any other settings for this control, beside the above code? When I load the form, the color scheme problem does not exist until I start to play the DVD.
Also, is it possible to play it by folder, rather than DVD drive only?
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
-
Mar 26th, 2015, 08:16 AM
#13
Re: DVD Videos
I did nothing special, just do the following:
1. Download the DLL if you haven't done so.
2. Add it as a component to your project.
3. Draw an instance of the MSWebDVD control on your form.
4. Set the DVDDirectory to a folder/drive containing a movie from/on a dvd.
5. Use to the Play method to start the movie.
Yes, it should also work if the movie is in a folder. I have no idea as to why it isn't working for you.
-
Mar 26th, 2015, 08:37 AM
#14
Thread Starter
Frenzied Member
Re: DVD Videos
Well, thanks for pointing me in the right direction.
I'll Be Back!
T-1000
Microsoft .Net 2005
Microsoft Visual Basic 6
Prefer using API
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|