The module wmp.dll failed to load.
Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL
The specified module could not be found.
After I did a file search for wmp.dll in Windows 11 and found these paths:
yes. activemovie can handle streaming. now, Im not using it anymore so Im not 100% sure. but I think u can do a search there should be examples.
nowadays I use fmodex for my needs as it handle all windows well. it can stream as well and can play .ogg format (that I use)
I tried directsound8 but it act differently between windows 7 and 10, works best in windows 7 (I get issues that some users can't make the engine start, so no sound)
and media foundation that is the reverse, act well in windows 10+ but not in windows 7 (I get issues with sounds not playing fully)
activemovie is very good, but I can not play from bytearray. can only play from url or file.
I'm trying to run my compiled "Audio Player" application on Windows 11 64-bit, but without success.
I haven't checked this explicitly, but I believe that the Windows Media Player under Win11 is a new development and is based on UWP or WinRT. Therefore, the old WMP references/OCX that worked until Win10 will no longer work. From Win11 onwards you can either rely directly on the MediaFoundation, on the XAML MediaPlayerElement via WinRT via the "XAML Islands" or, if that still works, on ActiveMovie.
I tried directsound8 but it act differently between windows 7 and 10, works best in windows 7 (I get issues that some users can't make the engine start, so no sound)
and media foundation that is the reverse, act well in windows 10+ but not in windows 7 (I get issues with sounds not playing fully)
Yes, a tried also with dx7vb.dll and dx8vb.dll, but it's not for my needs.
Originally Posted by -Franky-
I haven't checked this explicitly, but I believe that the Windows Media Player under Win11 is a new development and is based on UWP or WinRT. Therefore, the old WMP references/OCX that worked until Win10 will no longer work. From Win11 onwards you can either rely directly on the MediaFoundation, on the XAML MediaPlayerElement via WinRT via the "XAML Islands" or, if that still works, on ActiveMovie.
That would be my worst case scenario at this point, let's hear from others too, so, that we could be 100% sure mentioned above.
But in that case I don't see the point of the included files found on Windows 11:
I only installed Win11 in one VM and therefore can't look for the WMP.DLL at the moment. But when I look at the path to the DLL, I notice this: microsoft-windows-mediaplayer-core and that leads us here: https://learn.microsoft.com/en-us/uw...ew=winrt-22621 So this WMP.DLL is a UWP/WinRT DLL. If you only want to play audio, you can also use the WinRT class MediaPlayer from Win10: https://learn.microsoft.com/en-us/uw...ew=winrt-22621
I only installed Win11 in one VM and therefore can't look for the WMP.DLL at the moment. But when I look at the path to the DLL, I notice this: microsoft-windows-mediaplayer-core and that leads us here: https://learn.microsoft.com/en-us/uw...ew=winrt-22621 So this WMP.DLL is a UWP/WinRT DLL. If you only want to play audio, you can also use the WinRT class MediaPlayer from Win10: https://learn.microsoft.com/en-us/uw...ew=winrt-22621
I'm using Windows 7, as I mentioned above and I don't think I could use it in VB6.
I created a new project under Win10, created a WMP control on the form and compiled the project. Then I copied the exe into the Win11 VM and ran it. There are no error messages under Win11 and the WMP control is visible on the form. Win11 contains 2 Windows Media Players for me. Firstly, the “Media Playback”, which should be the UWP/WinRT app, and the “Windows Media Player Lagacy”, which is the old WMP. The WMP Control may work for me under Win11.
I created a new project under Win10, created a WMP control on the form and compiled the project. Then I copied the exe into the Win11 VM and ran it. There are no error messages under Win11 and the WMP control is visible on the form. Win11 contains 2 Windows Media Players for me. Firstly, the “Media Playback”, which should be the UWP/WinRT app, and the “Windows Media Player Lagacy”, which is the old WMP. The WMP Control may work for me under Win11.
I see something on the screenshot Franky, but unfortunately I don't get it, how did you create those controls?
What you can see in the screenshot are the existing media players in Win11 if I just enter “medi” in the search box.
In this screenshot you can see the VB6 project under Win10 on the left and the compiled and started project under Win11 on the right.
I have the same "Windows Media Player Control" included/compiled on Windows 7 64-bit, I don't understand why is it not working under Windows 11?, on Windows 10 it's working as intended.
It works for me. Are you missing the “Windows Media Player Legacy” in Win11? Rather unlikely, but do you perhaps have a Win11N version? The N version lacks all media features. But you can install it later. https://support.microsoft.com/en-us/...0-612c9bea9c01
Last edited by -Franky-; Mar 9th, 2024 at 09:30 AM.
It works for me. Are you missing the “Windows Media Player Legacy” in Win11? Rather unlikely, but do you perhaps have a Win11N version? The N version lacks all media features. But you can install it later. https://support.microsoft.com/en-us/...0-612c9bea9c01
No, I don't think so, I'm always installing Pro versions, but I will check it right away.
Could you please post here from your Project file the Object reference line to wmp.dll ?
Re: [RESOLVED] Windows Media Player (wmp.dll) on Windows 11
Hello.. I've actually faced a very similar problem myself when trying to run an older application (which worked fine on Windows 7) on Windows 10. It looks like Windows 11 might be treating your application the same way.
The core of the issue often isn't the file being missing, but a permissions problem preventing the program from accessing or registering the necessary component.
Here is the solution that worked for me, which you can suggest to the user:
Security Permissions Solution
Try modifying the security permissions for your compiled application's executable file:
Locate the main executable file of your "Audio Player" application (e.g., Audio Player.exe).
Right-click on the executable and select Properties.
Go to the Security tab.
In the "Group or user names" box, look for ALL APPLICATION PACKAGES (or similar entries like "Users," "Authenticated Users," etc.).
For each relevant group (especially ALL APPLICATION PACKAGES), click the Edit button.
In the permissions list, check the box for Full control under the "Allow" column.
Click Apply and then OK on all windows.
After applying these permissions, try running your "Audio Player" application again. For me, this simple change allowed the application to run normally, as it gave the necessary permissions to access and utilize components like wmp.dll.
Let me know if this helps resolve the Run-time error 339!