Why can I not load the Windows Media Player control (msdxm.ocx)?



Read and add posts to the Visual Basic 6.0 Forums

Download some of my programs and OCXs

Read the Tips here

The old style forum is still available here




From: Andrew Fovargue
Date: Tuesday 26 March 2002 3:57 PM
Subject: Media Player Control
Question: I am trying to use the media player control (msdxm.ocx) in my vb project but every time i try to add it from the components menu i get the error:

'C:\winnt\system32\msdxm.ocx can not be loaded'

I have tried downloading various versions of this file and windows media player but nothing seems to make any difference.

I have also tried regsvr32 to sort it out but that doesnt like it either.

I am running a windows nt4 environment (as part of the corporate network here) and wondered if you knew or know of anyone who might be able to help me with resolving this problem.

Andrew Fovargue

Try uninstalling all versions of Windows Media Player to get rid of it totally.

Download version 6.4 of Windows Media Player from here:

This will add MSDXM.OCX to your system as well as the codecs to be able to play multimedia files.

In Visual Basic, browse to the file in the components dialog, don't just check it. Sometimes it won't work if the wrong case is used e.g. MSDXM.OCX instead of msdxm.ocx.

I don't see any reason why the above shouldn't work. Are you able to open Windows Media Player and play files without VB? Are you able to run programs with MSDXM.OCX that other people have made e.g.:

Martin Allen 1999 - 2011.  Last updated Saturday 13 August 2011 12:02:13 AM +0100.