Pointy
11-12-2002, 05:49 PM
I'm trying to load the activex control for Windows Media player at runtime, but i don't know how. I can use it with classwizard, no problem.
any pointers would be appreciated
stuka
11-14-2002, 02:41 PM
Digging into my (tiny) bit of COM/ActiveX knowledge:
What you have to do, IIRC, is create an IUnknown pointer, and try to load the IID of the Media Player interface (what that is I have NO idea). From there, you can use QueryInterface() to ask for a pointer to the correct WMP interface for your functions, and use THAT pointer to actually call your functions. I don't know how this works with ActiveX, but I'm fairly sure that's the process for standard COM objects.
Pointy
11-14-2002, 05:04 PM
heh we're at the same point, stuka. thanks though
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.