Solved

Windows media player ActiveX Control

Posted on 2004-10-02
3
388 Views
Last Modified: 2012-05-05
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.
0
Comment
Question by:Anandforu
3 Comments
 
LVL 16

Accepted Solution

by:
nonubik earned 50 total points
ID: 12336499
You need to initialize COM before.
Try calling CoinitializeEx(0, COINIT_APARTMENTTHREADED). And CoUninitialize in the end if successfull.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question