Page 1 of 1

How to setup Visual C++ Express for MM ?

Posted: Sat Feb 02, 2008 3:22 pm
by botijo
Hi, everybody,
I have been struggling a lot with Visual C++ 2008 Express this afternoon, after I installed it for the first time. I do not find the correct way to "add reference" to the MM COM Object in VC++, although it did work for VC#. There is so much information that I cannot see how to do this right. Even telling me what are the basic steps will do me a favour - so confused I am at this stage.
By the way, there is no way I can try another compiler unless it is free and supports the upnphost interface. That is the reason I cannot continue with VC#.
Thanks for your time.

Posted: Sun Feb 03, 2008 4:39 pm
by Steegy
Really too bad that you can't use C#. It's a much more modern language.

Anyway, in VC++ open/create a project and then use:
menu Project > References... > Add New Reference... > COM > MediaMonkey Library > OK

Cheers
Steegy

Posted: Sun Feb 03, 2008 6:34 pm
by botijo
Ok, I got that tip... But I still cannot see the path of yellow bricks. I see that using COM objects in VC++ is ultimately complex, too much for a wannabe programmer like me. Although I am not sure if that is programming anymore - too much documentation reading, and not much algorithm solving.
I will continue my effort in documentation reading (although I cannot make any sense at all of how to use the MM interface in C++). If you find more info in the meantime, please let me know.
Update: I just hate VC++....

Posted: Mon Feb 04, 2008 4:35 pm
by Steegy
Take a look at the C++ sample code I just put in the wiki: http://www.mediamonkey.com/wiki/index.p ... plications

Cheers
Steegy

Posted: Mon Feb 04, 2008 4:43 pm
by botijo
Thanks a lot!
It looks like a wannabe programer like me has to learn a lot if I want to do something as complex as what I want to do. I really really find documentation by Microsoft not for people without experience.
Again, thanks.

VB.Net and MM

Posted: Sun May 25, 2008 11:47 am
by Skywave
Hi Steegy

I appreciate that you point us in the Northerly direction on the Wiki :D

However... I want to go North West. Meaning that instead of opening a new instance of MM (which is what happens with CreateObject("SongsD.SDBApplicationClass")), I want to connect to the existing one.

I've tried GetObject in VB.Net with "SongsDB.SDBApplicationClass" as the classname, without specifying the path. I've also tried it with "Winamp v1.x". Both of them throw up a "Can't create ActiveX object" error. :cry:

Any ideas?

Thanx
Skywave