Search found 9 matches

by dplummer
Thu Jun 21, 2018 6:43 am
Forum: MediaMonkey 4 Addons developer forum
Topic: Using the COM interface with VS2017 and plain C++
Replies: 6
Views: 3220

Re: Using the COM interface with VS2017 and plain C++

Thanks for the reply Pavle, This is not quite right and I am still struggling. My code is: ISDBDatabase *pSDBDatabase; pSDB->get_Database(&pSDBDatabase); BSTR qs = SysAllocString(L"Author='Berio, Adolfo'"); IDispatch *pIDisp; pSDBDatabase->QuerySongs(qs, &pIDisp); This returns OK but the IDispatch p...
by dplummer
Wed Jun 20, 2018 5:12 pm
Forum: MediaMonkey 4 Addons developer forum
Topic: Using the COM interface with VS2017 and plain C++
Replies: 6
Views: 3220

Re: Using the COM interface with VS2017 and plain C++

Hi again, I had really hoped that I could work this out for myself but I have failed to get a result from QuerySongs with the c++ interface. I have successfully accessed the interface and can control the player. However I have been reading as much background as I can and beating my head against a br...
by dplummer
Thu Jun 14, 2018 12:50 pm
Forum: MediaMonkey 4 Addons developer forum
Topic: QuerySongs in C++, how to use the IDispatch result?
Replies: 2
Views: 1510

Re: QuerySongs in C++, how to use the IDispatch result?

I know this question is from way in the past but did you ever get to a solution? I am in exactly the same place and having difficulty believing that getting a SongIterator object from the IDispatch result requires as much code as the MS manual pages seem to imply. Please do share any solution or wis...
by dplummer
Tue Jun 12, 2018 11:15 am
Forum: MediaMonkey 4 Addons developer forum
Topic: Using the COM interface with VS2017 and plain C++
Replies: 6
Views: 3220

Re: Using the COM interface with VS2017 and plain C++

Many thanks petrCBR, With a bit of tweaking that did the trick. Here is a working fragment: CoInitialize(NULL); ISDBApplication *pSDB; HRESULT hr = CoCreateInstance(CLSID_SDBApplication, NULL, CLSCTX_LOCAL_SERVER, IID_ISDBApplication, reinterpret_cast<void**>(&pSDB)); if (hr!=S_OK) { printf("Failed ...
by dplummer
Sat Jun 09, 2018 12:26 pm
Forum: MediaMonkey 4 Addons developer forum
Topic: Using the COM interface with VS2017 and plain C++
Replies: 6
Views: 3220

Using the COM interface with VS2017 and plain C++

All, I know that the COM interface is deprecated and also appreciate that C++ is rather long in the tooth but I am where I am, trying to port some existing Python code that works with win32com into an existing c++ console application developed under Visual Studio 2017. So far I have generated an IDL...
by dplummer
Thu Nov 30, 2017 7:47 am
Forum: MediaMonkey 4 Addons developer forum
Topic: Displaying Album Art in Python - Example Please
Replies: 3
Views: 1565

Re: Displaying Album Art in Python - Example Please

Hi, I have tried hard but with no success to extract an image from the ImageData item in the Image object. In the end I gave up on this approach and decided to go back to the track file and use mutagen to extract the image tag picture data. The code I used is below. I would still however be very int...
by dplummer
Sun Nov 26, 2017 5:58 pm
Forum: MediaMonkey 4 Addons developer forum
Topic: Displaying Album Art in Python - Example Please
Replies: 3
Views: 1565

Re: Displaying Album Art in Python - Example Please

Thanks for responding Pavle, I am afraid that I need a bit more guidance. You say "Read ImageData stream -> Image Variable". As I understand it the ImageData member of SDBImage is a pointer to the data buffer and is stored in an integer. My first problem is to get the ImageData as a python bytes obj...
by dplummer
Sat Nov 25, 2017 4:34 pm
Forum: MediaMonkey 4 Addons developer forum
Topic: Displaying Album Art in Python - Example Please
Replies: 3
Views: 1565

Displaying Album Art in Python - Example Please

Hi, I want to display Album Art that is stored in a tag from a Python program. I can access the SDBImage object and extract the image dimensions etc but so far none of my attempts to use the ImageData value to create an image have worked. My current code is as follows: print("Image format:", img.Ima...
by dplummer
Sun Mar 19, 2017 2:19 pm
Forum: Beta Testing, Bugs & Feature requests (mma)
Topic: [REQ] Remember current server and renderer
Replies: 0
Views: 695

[REQ] Remember current server and renderer

Hi, Many thanks for the whole MM Project. I have been a Gold user on MMW since 2008 and an MMA user since its first release and find it a great piece of software. I am now using MMA on a tablet as a control point between my MMW server and a Chromecast renderer. Functionally this works (gapless excep...