MediaMonkey COM interface with C++

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: MediaMonkey COM interface with C++

Re: MediaMonkey COM interface with C++

Post by mcow » Sat Jun 25, 2011 12:56 pm

Peke wrote:Use #import on MM exe.

Skinned or unskinned? Or does it make no difference?

Re: MediaMonkey COM interface with C++

Post by Peke » Fri Jun 24, 2011 6:59 pm

Use #import on MM exe.

Re: MediaMonkey COM interface with C++

Post by mcow » Fri Jun 24, 2011 6:28 pm

This page at MSDN addresses that.

Since MM doesn't include the .tlb file with the distro (maybe it's available if you ask?) it looks like you can use the #import on either the .EXE file (or maybe one of the .DLLs, but the ones I see in the MM3 directory look from their names to be specific to certain functions).

Re: MediaMonkey COM interface with C++

Post by ccom » Thu Jun 23, 2011 1:12 pm

The main source of trouble is the importing of the type library. Any idea how to accomplish that?

Re: MediaMonkey COM interface with C++

Post by mcow » Sun May 29, 2011 11:20 am

I've only done COM interaction with Python, which interrogates the object server to find out what the interface is.
In general, I think the C++ technique boils down to (roughly, I don't know if these names or syntax are correct):
Code: Select all
sdb = new ComObject("SongsDB.Application");
sdb->Invoke(methodID);   // where you need to have a list of methodIDs

I did find this tutorial online. The guy who wrote it was talking about it in another forum, and said that altho it's primarily PowerBasic-related, the first tutorial has a lot of C++ code. Maybe it will help.
I also saw a reference saying that using Microsoft's ATL library is the best way to interface to COM from C++.

MediaMonkey COM interface with C++

Post by ccom » Sat May 28, 2011 3:18 am

I have very limited experience with COM and was hoping that someone here may be able to help me. I want to access the MediaMonkey COM object through the COM API, but I have no idea how without any type headers.

Is there a header available or some other way?

Top