Anyone use Windows COM?
by Pat Wilson · in General Discussion · 01/27/2005 (7:10 pm) · 1 replies
Anyone here work with Windows COM? I'm having some wacky issues trying to work with the iTunes SDK. Basically I can do what I want to do using Windows Scripting Host, but that's lame. I'm trying to use C++, and for some reason the 'IITLibraryPlaylist::Search' function is trying to allocate 0xF786A1A6 bytes off the heap. Which is insaine. All the other iTunes COM stuff seems to work just fine. I can play, pause, ffwd etc, but not search. Any thoughts?
About the author
Torque Owner Louis Dargin
1) Be sure to send an address to an interface pointer for the parameter iTrackCollection
i.e.
IITTrackCollection *pTC;
MyPlayList::Search( ..., ..., &pTC);
2) Make sure the search text is a BSTR and that it isn't empty.
3) Write a test function in WSH or Visual Basic using the "Search" to make sure its not iTunes' fault.