Ax ...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SmltIE11bmFmbw==?=

    #1

    Ax ...

    I just inherited a project that uses a AxMediaPlayer control. The project
    was building fine on the developer's computer, and I no longer have access to
    that computer or the developer.

    When I try to build the project on my computer, I get the following errors:
    'AxMediaPlayer' cound not be found (are you missing a ...)
    'AxWMPLib' could not be found (are you missing a ...)

    The file AxInterop.Media Player.dll existed in his release and debug
    directories. If I add a reference to that file, the project will build fine.
    However, I don't think that this is the right way to do it.

    In VS 2003, I've tried adding a reference to the Windows Media Player
    "msdxm.ocx" (and all of the other Windows media COM controls), but it still
    fails to build with these errors.

    I've also tried downloading every Windows Media SDK I could get my hands on
    but there are no files in there that seem to have the
    AxInterop.Media Player.dll assembly.

    Does anybody know what reference I should truly add to get this to work, or
    of a way to generate the AxInterop.Media Player.dll using aximp?

    Thanks,
    -- Jim

  • PlatinumBay

    #2
    Re: Ax ...

    Jim,

    The interop file is just a wrapper around an existing COM object. You will
    need to have that COM object registered on your system for this to work.

    You may need to change the reference to the new AxWindowsMediaP layer COM
    library.
    http://www.codeguru.com/forum/showthread.php?t=308086

    Hope this helps,


    Steve

    "Jim Munafo" <Jim Munafo@discussi ons.microsoft.c omwrote in message
    news:6AA15057-86A6-430D-9FDA-9C9D00CA2006@mi crosoft.com...
    >I just inherited a project that uses a AxMediaPlayer control. The project
    was building fine on the developer's computer, and I no longer have access
    to
    that computer or the developer.
    >
    When I try to build the project on my computer, I get the following
    errors:
    'AxMediaPlayer' cound not be found (are you missing a ...)
    'AxWMPLib' could not be found (are you missing a ...)
    >
    The file AxInterop.Media Player.dll existed in his release and debug
    directories. If I add a reference to that file, the project will build
    fine.
    However, I don't think that this is the right way to do it.
    >
    In VS 2003, I've tried adding a reference to the Windows Media Player
    "msdxm.ocx" (and all of the other Windows media COM controls), but it
    still
    fails to build with these errors.
    >
    I've also tried downloading every Windows Media SDK I could get my hands
    on
    but there are no files in there that seem to have the
    AxInterop.Media Player.dll assembly.
    >
    Does anybody know what reference I should truly add to get this to work,
    or
    of a way to generate the AxInterop.Media Player.dll using aximp?
    >
    Thanks,
    -- Jim
    >

    Comment

    • Jim

      #3
      Re: Ax ...

      Thanks Steve,

      I was hoping to avoid having to upgrade to the new AxWindowsMediaP layer COM
      library. Basically, I want to baseline the code to exactly what I received.
      I saw the post earlier too that you reference. I'm going to try it on an XP
      RTM dev box and see if that helps. I'll report back if it works.

      Thanks,
      -- Jim



      "PlatinumBa y" <stevanich@comm unity.nospamwro te in message
      news:%23YhvsR7p HHA.3660@TK2MSF TNGP04.phx.gbl. ..
      Jim,
      >
      The interop file is just a wrapper around an existing COM object. You
      will need to have that COM object registered on your system for this to
      work.
      >
      You may need to change the reference to the new AxWindowsMediaP layer COM
      library.
      http://www.codeguru.com/forum/showthread.php?t=308086
      >
      Hope this helps,
      >
      >
      Steve
      >
      "Jim Munafo" <Jim Munafo@discussi ons.microsoft.c omwrote in message
      news:6AA15057-86A6-430D-9FDA-9C9D00CA2006@mi crosoft.com...
      >>I just inherited a project that uses a AxMediaPlayer control. The project
      >was building fine on the developer's computer, and I no longer have
      >access to
      >that computer or the developer.
      >>
      >When I try to build the project on my computer, I get the following
      >errors:
      >'AxMediaPlayer ' cound not be found (are you missing a ...)
      >'AxWMPLib' could not be found (are you missing a ...)
      >>
      >The file AxInterop.Media Player.dll existed in his release and debug
      >directories. If I add a reference to that file, the project will build
      >fine.
      >However, I don't think that this is the right way to do it.
      >>
      >In VS 2003, I've tried adding a reference to the Windows Media Player
      >"msdxm.ocx" (and all of the other Windows media COM controls), but it
      >still
      >fails to build with these errors.
      >>
      >I've also tried downloading every Windows Media SDK I could get my hands
      >on
      >but there are no files in there that seem to have the
      >AxInterop.Medi aPlayer.dll assembly.
      >>
      >Does anybody know what reference I should truly add to get this to work,
      >or
      >of a way to generate the AxInterop.Media Player.dll using aximp?
      >>
      >Thanks,
      >-- Jim
      >>
      >
      >

      Comment

      • Jim

        #4
        Re: Ax ...

        Well, it appears that this was exactly the problem. After loading up XP RTM
        (which comes with media player 8.00.00.4477), it built fine. I will
        probably just start using the new AxWindowsMediaP layer COM library like
        Steve suggested, but does anybody know the "correct" way to use the old
        AxMediaPlayer COM library on an XP SP2 box after media player has been
        upgraded? I tried all of the old media player SDK's and there doesn't
        appear to be a way to reference the old library without coming up with some
        kind of hack.

        Thanks again,
        -- Jim


        "Jim" <jim.munafo@ngc .comwrote in message
        news:c264c$4665 da4d$d8447f26$1 7639@FUSE.NET.. .
        Thanks Steve,
        >
        I was hoping to avoid having to upgrade to the new AxWindowsMediaP layer
        COM library. Basically, I want to baseline the code to exactly what I
        received. I saw the post earlier too that you reference. I'm going to try
        it on an XP RTM dev box and see if that helps. I'll report back if it
        works.
        >
        Thanks,
        -- Jim
        >
        >
        >
        "PlatinumBa y" <stevanich@comm unity.nospamwro te in message
        news:%23YhvsR7p HHA.3660@TK2MSF TNGP04.phx.gbl. ..
        >Jim,
        >>
        >The interop file is just a wrapper around an existing COM object. You
        >will need to have that COM object registered on your system for this to
        >work.
        >>
        >You may need to change the reference to the new AxWindowsMediaP layer COM
        >library.
        >http://www.codeguru.com/forum/showthread.php?t=308086
        >>
        >Hope this helps,
        >>
        >>
        >Steve
        >>
        >"Jim Munafo" <Jim Munafo@discussi ons.microsoft.c omwrote in message
        >news:6AA1505 7-86A6-430D-9FDA-9C9D00CA2006@mi crosoft.com...
        >>>I just inherited a project that uses a AxMediaPlayer control. The
        >>>project
        >>was building fine on the developer's computer, and I no longer have
        >>access to
        >>that computer or the developer.
        >>>
        >>When I try to build the project on my computer, I get the following
        >>errors:
        >>'AxMediaPlaye r' cound not be found (are you missing a ...)
        >>'AxWMPLib' could not be found (are you missing a ...)
        >>>
        >>The file AxInterop.Media Player.dll existed in his release and debug
        >>directories . If I add a reference to that file, the project will build
        >>fine.
        >>However, I don't think that this is the right way to do it.
        >>>
        >>In VS 2003, I've tried adding a reference to the Windows Media Player
        >>"msdxm.ocx" (and all of the other Windows media COM controls), but it
        >>still
        >>fails to build with these errors.
        >>>
        >>I've also tried downloading every Windows Media SDK I could get my hands
        >>on
        >>but there are no files in there that seem to have the
        >>AxInterop.Med iaPlayer.dll assembly.
        >>>
        >>Does anybody know what reference I should truly add to get this to work,
        >>or
        >>of a way to generate the AxInterop.Media Player.dll using aximp?
        >>>
        >>Thanks,
        >>-- Jim
        >>>
        >>
        >>
        >
        >

        Comment

        Working...