Search found 9 matches
- Thu Jun 21, 2018 6:43 am
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Using the COM interface with VS2017 and plain C++
- Replies: 8
- Views: 22941
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 b...
- Wed Jun 20, 2018 5:12 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Using the COM interface with VS2017 and plain C++
- Replies: 8
- Views: 22941
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...
- 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: 10461
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...
- Tue Jun 12, 2018 11:15 am
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Using the COM interface with VS2017 and plain C++
- Replies: 8
- Views: 22941
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(&quo...
- Sat Jun 09, 2018 12:26 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Using the COM interface with VS2017 and plain C++
- Replies: 8
- Views: 22941
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...
- Thu Nov 30, 2017 7:47 am
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Displaying Album Art in Python - Example Please
- Replies: 3
- Views: 11252
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...
- Sun Nov 26, 2017 5:58 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Displaying Album Art in Python - Example Please
- Replies: 3
- Views: 11252
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...
- Sat Nov 25, 2017 4:34 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Displaying Album Art in Python - Example Please
- Replies: 3
- Views: 11252
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:"...
- Sun Mar 19, 2017 2:19 pm
- Forum: Beta Testing, Bugs & Feature requests (mma)
- Topic: [REQ] Remember current server and renderer
- Replies: 0
- Views: 1569
[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...