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.
AnandforuAsked:
Who is Participating?
 
nonubikConnect With a Mentor Commented:
You need to initialize COM before.
Try calling CoinitializeEx(0, COINIT_APARTMENTTHREADED). And CoUninitialize in the end if successfull.
0
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.

All Courses

From novice to tech pro — start learning today.