WMPL ActiveX insertion

This is a discussion on WMPL ActiveX insertion within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I need to insert a Windows Media Player in a Win32 window. As I've never done ActiveX, ATL or ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    58

    WMPL ActiveX insertion

    Hi,
    I need to insert a Windows Media Player in a Win32 window. As I've never done ActiveX, ATL or MFC development I'd like to know if there is a way of inserting a WMP ActiveX control (is a dll isn't it?) into a Win32 window, without passing through ATL or MFC libraries.
    This is trivial in .net, but here I'm bumping into my ignorance. Many thanks!

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Check out the WmpHost sample found in the Windows Media SDK. I know it's in the older SDK's such as Windows Media Player SDK 10. But I'm not sure about the newer SDK's.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    137
    Yes, ActiveX embedding is native in Win32 (without ATL, MFC , or anything else)
    You just have to use the OCX Host class.
    No code needed.

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    58
    Thanks guys!
    Alex, since u hit straight to my specific request, do u know if I can dock my control withing the win32 created window? If I can call the WMP ocx (I know is somewhere in the system) in my container window, would it follow the behaviour of this one, ie follow it's resizing, moving and close? In terms of development (under VS2008), should I start a win32 project, add the ocx ressource and ... configure the properties? Am I missing something? Cheers!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help on ActiveX
    By jason_6496 in forum Windows Programming
    Replies: 0
    Last Post: 07-18-2006, 11:53 AM
  2. Do you know...
    By davejigsaw in forum C++ Programming
    Replies: 1
    Last Post: 05-10-2005, 10:33 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  5. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 02:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21