• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • Last Modified:

Windows media player ActiveX Control

i want to add windows media player activex control in vc++. how to do it? i added the windows media player activex control.But when i calling a method in it ,an runtime error occurs.No details in that error. please help me .very urgent.
1 Solution
You need to initialize COM before.
Try calling CoinitializeEx(0, COINIT_APARTMENTTHREADED). And CoUninitialize in the end if successfull.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now