[MPlayer-dev-eng] Windows COM question

Georgi Petrov gogothebee at gmail.com
Wed Feb 16 14:33:25 CET 2011


On Wed, Feb 16, 2011 at 1:50 PM, Georgi Petrov <gogothebee at gmail.com> wrote:
> Well, one more COM related question.
>
> Please excuse my misunderstanding, but MPlayer is the first
> non-Microsoft project, which I have to connect to the "Microsoft
> world" of COM.
>
> Please correct me if I got it all wrong:
>
> Sincle MPlayer isn't statically linked with any DLL I'm interested in
> and is coded in C, I have to do the following if I want to use any COM
> interface:
>
> 1. Use LoadLibrary to get a pointer to ole32.dll
> 2. Use GetProcAddress to get a pointer to CoInitializeEx inside ole32.dll.
> 3. Call CoInitializeEx to init the COM library.
> 4. Use GetProcAddress to get a pointer to CoCreateInstance inside ole32.dll.
> 5. Call CoCreateInstance with the EVR CLSID.

Okay, I seem to answer my own questions. MPlayer is linked to
ole32.dll and I've found CoInitializeEx & friends, so LoadLibrary and
GetProcAddress questions are no longer relevant.


More information about the MPlayer-dev-eng mailing list