ITunes COM interface missing

I have recently updated to iTunes 8 (8.0.0.35 on Windows XP Pro). I was using a little self-written C# application to control iTunes using my mouse's special buttons (the mouse driver supports this out of the box, however not in the way I want it to).
After the update, the application stopped working throwing an “interface not supported” 0x80004002 E_NOINTERFACE error. When I tried recompiling the tool from source, there was an error loading the iTunes COM interface. When checking the list of available COM interfaces in Visual Studio I noticed the “iTunes {VersionNumber} Type Library” interface was not listed.
Did Apple remove the iTunes Type Library COM interface or was there just some error while installing iTunes 8 so it did not get registered?
Btw: You don't need Visual Studio to check whether the COM interface is available; a lot of other applications allow using COM interfaces aswell, i.e. Visual Basic for Office (go to Tools » References and search the list for iTunes; my system lists iTunesAdmin, iTunesOutlookAddIn, iTunesPhotoSupport)

I have heard of several people having this issue.
Refer to this thread:
http://discussions.apple.com/thread.jspa?messageID=8048746&#8048746
Maybe you can figure out which registry settings to add/delete...
But you can apparently also fix it by:
1) uninstalling iTunes 8
2) Installing iTunes 7.7
3) Uninstalling iTunes 7.7
4) installing iTunes 8 again
(reference http://groups.google.com/group/itunes-com-developers/browse_thread/thread/61918c cf74a32e8)
Fun, right?

Similar Messages

  • ITunes COM interface

    I made an application that interfaced with the iTunes COM interface a while back now. And after updating to 7.4.1.2, it stopped working.
    Unhappy...
    Any ideas?

    The iTunes SDK has not been updated, so I can only recommend you logon to your developer account and raise the issue through channels at their site, probably a bug report would be appropriate.

  • Cannot downcast IITWindow to IITBrowserWindow in iTunes COM interface.

    Actually, what I'd really like is the ability to highlight a playlist, or an artist, or an album, or a bunch of tracks and use right-click to send the information to another application. But as that isn't an option, I've started looking at the iTunes COM interface.
    The code I'm trying to run, gets an IITWindowCollection using LiTunes:Windows() and then iterates though these. When it finds either a BrowserWindow, or a PlaylistWindow, I want to do more processing. But I'm unable to downcast the IITWindow object to an IITBrowserWindow.
    Here's a snippet of what I'm trying to do:
    IITWindowCollection* iIWindowCollection;
    long lCount;
    hRes = iITunes->get_Windows(&iIWindowCollection);
    hRes = iIWindowCollection->get_Count(&lCount);
    IITWindow *iITWindow;
    ITWindowKind iTWindowKind;
    BSTR bstrName;
    IITBrowserWindow *iITBrowserWindow;
    IITTrackCollection *iITTrackCollection;
    for (long i = 1; i <= lCount; i++) {
    hRes = iIWindowCollection->get_Item(i, &iITWindow);
    hRes = iITWindow->get_Name(&bstrName);
    hRes = iITWindow->get_Kind(&iTWindowKind);
    switch (iTWindowKind) {
    case ITWindowKindBrowser:
    // At this point I need to refer to the object as iITBrowserWindow, not iITWindow.
    iITBrowserWindow = dynamic_cast<IITBrowserWindow *>(iITWindow);
    if (iITBrowserWindow) {
    hRes = iITBrowserWindow->get_SelectedTracks(&iITTrackCollection);
    break;
    case ITWindowKindPlaylist:
    break;
    When I run it, I get an exception on the dynamic_cast.
    What am I doing wrong here, as I can't see why this shouldn't work.
    Or is my lack of C++ knowledge that obvious. <GRIN>.
    Cheers.

    Ha. I was partly right with my comment about lack of C++ knowledge. It turned out to be a lack of knowledge on how Windows COM works.
    In case anyone else runs into this, and finds this thread, (Yeah, right. LOL) here's the answer.
    You can't just "cast" from one object to another. You have to use the IUnknown::QueryInterface function to get the pointer to the new Object.
    Easy when you know how, not !!!!!
    Now onto other questions about how to access parts of the UI through this interface.
    Cheers.

  • ITunes COM Interface Documentation

    hi all
    I want to know ,how to add the photos to ipod in iTunes COM Interface Documentation .
    please help me ,
    thanks.
    my email: [email protected]

    I don't think the COM interface supports what you want to do. You can get the documentation here:
    http://developer.apple.com/sdk/itunescomsdk.html

  • Do PlayFile and AddFile still exist in the iTunes COM interface?

    I'm playing around with the iTunes COM SDK on Windows. I'd like to come up with a script that causes iTunes to play a video file, and either the PlayFile (associated with the liTunes interface) or AddFile (IITUserPlaylist) methods ought to do the trick -- at least in theory.
    Unfortunately, neither of them work. They're both still apparently valid method calls, since my Java -> COM bridge barfs when I feed it invalid method names. But neither of them actually does anything. By way of contrast, OpenURL and AddURL both work perfectly -- and they'd be viable workarounds, save that they both assume the input file is streaming audio and store it in the library as such.
    Have these methods been deprecated? If so, what have they been replaced with? Or is it more likely that I'm running afoul of one gotcha or another?
    Right now, the only workaround I can think of is to write code that edits "iTunes Music Library.xml" directly, and I'd rather avoid that for what should be bloody obvious reasons.
    Thanks in advance for any insight anyone has to offer on this.

    In general:
    - The best way to check if files are in a library is to drag the whole media folder to the library.  If something was missed it will be added.  If it is in the library is won't be added a second time.
    - If you have a second copy of a file and iTunes does not currently list that specific file in its database then even if it is identical to one already in the database it will add it a second time.  So if you have file xyz on the internal drive and the external drive and add them to iTunes you will end up with two entries for the same thing in iTunes because you really do have to copies of the files.  While this can happen with two copies on a single drive, it will almost definitely be the case when you have a copy of a file on two drives because iTunes really sees them as two different things.
    -Unless you know how iTunes works, avoid moving files yourself.  Let the consolidate feature do all the file moving.  Manually moving files can really mess up iTunes unless you know what you are doing and have iTunes set to not try to do it itself.
    - There's no clean and easy way to delete duplicates.  The best thing is to change practice so you don't create them.   Here are  references:
    How to find and remove duplicate items in your iTunes library - http://support.apple.com/kb/HT2905
    http://dougscripts.com/itunes/itinfo/dupin.php (commercial)
    Posts by turingtest2 about different types of duplicates and techniques- https://discussions.apple.com/thread/3555601 and https://discussions.apple.com/message/16042406 (Note: The DeDuper script is for Windows)
    http://www.hardcoded.net/dupeguru_me/

  • Unavailable iTunes COM interface (FAO Robert Jacobson)

    Something hasn't set up properly or has broken which causes no iTunes VBS or Javascript files to execute, they simply respond that they cannot create the 'iTunes.Application' object.
    Does anyone know enough about COM interfaces and Vista to explain why this is happening or how to fix it? (obviously reinstalling iTunes, different versions, registering vbscript etc have no effect).
    (this is a continuation of http://discussions.apple.com/thread.jspa?messageID=8268641)

    Sounds like the COM interface did not register. This seems to have happened to several people when upgrading from iTunes 7 to iTunes 8. I don't think it is specific to Vista, or x64.
    I would first try a "repair" install. In other words, if you have iTunes 8 installed, try installing it again and selecting the "Repair" option.
    If that doesn't work, try this:
    1) Uninstall iTunes 8
    2) Install iTunes 7.7
    3) Uninstall iTunes 7.7
    4) install iTunes 8 again
    Message was edited by: Robert Jacobson1

  • ITunes COM Interface - Podcasts

    Hello ...
    If anyone is familiar with the iTunesLib.dll COM interface ...
    I can't figure out for the life of me how to emulate deleting a podcast feed (by right clicking the feed in the Podcasts playlist and clicking "Delete") in code.
    I can iterate through each URLTrack and delete those, but the name of the feed always remains.
    Even shelling out and deleting the folder (under "\\Itunes Music\Podcasts\" does not get the job done ...
    Anyone know how to do this with the iTunesLib interface? Or even if you might tell me where this information is physically stored when you subscribe to a podcast so that deleting it via the COM interface will actually delete the feed (and not just the tracks...).
    Thanks.

    I don't think this is possible.
    If you don't already have it, the documentation for the COM interface is here:
    http://developer.apple.com/sdk/itunescomsdk.html
    You might try asking in the Developer or the Software Development 101 forums (even though the forums seem to be for Mac development...)
    http://home.comcast.net/~teridon73/itunesscripts/    

  • ITunes COM interface and iPod Chapters

    Hello everybody
    Does anyone know how to make Chapters through the COM interfaces for iTunes? Looking at the documentation there's no such functionality as far as I can see, but double checking anyway.
    If not, is there any other way to make chapters for MP4 files that are supported by iPod? I am on Windows so ChapterTool is not available to me.
    Thanks!

    I don't think the COM interface supports what you want to do. You can get the documentation here:
    http://developer.apple.com/sdk/itunescomsdk.html

  • ITunes COM interface for Windows

    Anyone know what is the newest version?
    I would suspect that an updated documentation was available for iTunes 10.
    The one for download is rather old.
    Regards
    Thomas

    Hi, welcome to Apple Discussions.
    The version I have is 8.1.0.52. I'm not aware of a newer version, although I've just failed to find the download in the ADC site, and it doesn't seem to be there, so perhaps an update is imminent.
    tt2

  • ITunes COM SDK broken on Windows XP??

    I have an application called TuneUp Companion (http://www.tuneupmedia.com) that was working fine with iTunes 7.7 and after upgrading is broken.
    It works fine on Windows Vista ...but iTunes 8 on Windows XP seems to give a message back that the iTunes COM interface is not available.
    Are there known issues with the iTunes COM SDK for Windows (7/15/08 release) on Windows XP??
    Thanks, Raza

    much of this is speculation because I can't remember how many previous versions of iTunes were on these machines...but this is what we're seeing:
    extra entries in two registry keys... when it didn't work these two registry entries contained "AppID" values:
    HKEYCLASSESROOT\CLSID\{B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}\Implemented
    Categories
    HKEYLOCALMACHINE\SOFTWARE\Classes\CLSID\{B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}
    with the APpID set to the same iTunes CLSID string:
    {B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}
    and when it did work the AppIDs entries were gone. this is only on XP.
    on vista there never was any AppID entry.
    but, again, i wonder if that was added by previous versions of iTunes which we didn't install on the vista machines...
    Also, worthy of noting is this post from Apple:
    http://support.apple.com/kb/HT1925
    ciao, raza

  • ITunes COM timesout in PHP

    I'm trying to connect to the iTunes COM interface from PHP. The code simply looks like:
    $iTunes = new COM("iTunes.Application");
    When I try to run this, the browser sits there and thinks for a while, then times out with:
    Fatal error: Maximum execution time of 30 seconds exceeded in K:\Webserver\content\private\iTunes.php on line 25
    Any help with this?

    Sorry, no anwser - but I have exactly the same problem, and really thought, that more people will have it, too...
    To be maybe a bit more precise: It SEEMS like Oulooks closes, but there is still the icon on the right buttom, showing, that Outook ist still open in the background. Also my mails in the trash folder of outlook are not deleted, which is a clear sign, that outlook is still running.
    This is - once again, after the "DEL key bug" extremly annoying! I don't use the Outlook sync function, so why is Apple touching my installation of Outlook, without asking me, and without giving me a chance, to reverse it? This is absolutely unacceptable!!

  • I use XP. When I open Itunes a mewssage comes up saying, Itune drivers are missing ,please reinstall. I reinstall and I get the same message. I use to be able to use Itunes for copying ,etc. but now I can't.

    I have Itunes on my PC. I used it to burn and copy music which I had on Itunes.  I had some work done on my PC. Now when I open it a message comes up saying, that Itune drivers are missing,
    reinstall Itunes.
    I did that and I still get the same message. What am I doing wrong
    Paul

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Itunes COM SDK: cannot register function with iTunes Outgoing Interface

    I am doing benchmarks and I want to time the encoding of a Music CD. In order to stop the "clock" and compute the time I am trying to bind a function with the _IITConvertOperationStatusEvents::OnConvertOperationCompleteEvent()
    I am writing a AutoIt script and I can create the iTunes application object but when I use the ObjEvent function to register my function with the event above it causes a COM exception to be raised and the ObjEvent completes with an error. The exception code I get is 80040200 which seems to be a generic error.
    $objApp=ObjCreate("iTunes.Application")
    $SinkObject=ObjEvent($objApp, "ITEvent", "_IITConvertOperationStatusEvents")
    <<exception 80040200>>
    Browsing the iTunes COM TypeLib the _IITConvertOperationStatus does not seem to be a child in the iTunes object hierarchy so I think this is way the exception is being raised. I have tried to register another function with another outgoing interface and this works just perfectly: _IiTunesEvents::OnQuitting()
    Do I need to create another object which gets passed as the first parameter to the ObjEvent function?
    *Here is the entire script:*
    $ITSourceKindAudioCD = 3
    $begin = 0
    Global $trackName, $progressValue, $maxProgressValue, $SinkObject
    $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Install a custom error handler
    $objApp = ObjCreate("iTunes.Application")
    If @error Then
    MsgBox(0, "ObjCreate", "Create Object Failed", 3)
    Exit
    EndIf
    $event = ObjEvent($objApp, "ITEvent1_", "_IiTunesEvents")
    If @error Then
    MsgBox(0, "Failed", "IiTunesEvent binding failed", 5)
    Exit
    EndIf
    $SinkObject = ObjEvent($objApp, "ITEvent_", "_IITConvertOperationStatusEvents") ; Assign events to UDFs starting with IEEvent_
    If @error Then
    MsgBox(0, "ObjEvent binding", "ObjEvent failed!", 10)
    $objApp.Quit()
    Exit
    EndIf
    $colSources = $objApp.Sources
    $begin = TimerInit()
    For $objSource in $colSources
    If $objSource.Kind = $ITSourceKindAudioCD Then
    $strName = $objSource.Name
    $colPlaylists = $objSource.Playlists
    $objPlaylist = $colPlaylists.ItemByName($strName)
    $colTracks = $objPlaylist.Tracks
    $objApp.ConvertTracks2($colTracks)
    EndIf
    Next
    Do
    ; Wait around for the ripping to complete
    Until False
    ; This is my custom error handler
    Func MyErrFunc()
    $HexNumber = hex($oMyError.number,8)
    Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _
    "Number is: " & $HexNumber & @CRLF & _
    "Windescription is: " & $oMyError.windescription )
    EndFunc
    Func ITEvent1_OnQuittingEvent()
    MsgBox(0, "Bye", "Bye-Bye", 10)
    EndFunc
    func ITEvent_OnConvertOperationCompleteEvent()
    $dif = TimerDiff($begin)
    MsgBox(0,"Time Difference",$dif)
    $objApp.Quit()
    EndFunc

    much of this is speculation because I can't remember how many previous versions of iTunes were on these machines...but this is what we're seeing:
    extra entries in two registry keys... when it didn't work these two registry entries contained "AppID" values:
    HKEYCLASSESROOT\CLSID\{B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}\Implemented
    Categories
    HKEYLOCALMACHINE\SOFTWARE\Classes\CLSID\{B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}
    with the APpID set to the same iTunes CLSID string:
    {B9E1D2CB-CCFF-4AA6-9579-D7A4754030EF}
    and when it did work the AppIDs entries were gone. this is only on XP.
    on vista there never was any AppID entry.
    but, again, i wonder if that was added by previous versions of iTunes which we didn't install on the vista machines...
    Also, worthy of noting is this post from Apple:
    http://support.apple.com/kb/HT1925
    ciao, raza

  • HT1459 I purchase an iPod shuffle for my niece and nephew last year for Christmas.  My nephew's iPod has come up missing and I have reason to believe it was stolen.  I  used my iTunes to put music on it in the beginning can I find the serial number somewh

    I purchased an iPod shuffle for my niece and nephew last year for Christmas.  My nephew's has come up missing and I have strong reason to believe it was stolen.  Amazon cannot give me the serial number and I used my iTunes to put music on it initially.  Is there a place I can find the serial number on my iTunes and can it be tracked to different computers if someone else is using it?  My nephew no longer has the packaging.

    Type "ipod serial number" into the search bar at the top of this page by Support and read the article explaining how to find the serial number.

  • BUG: iTunes truncates lyrics when using COM Interface

    Hi!
    I am using iTunes 6.0.4.2 for Windows (Latest Version at the moment), running under Windows 2000, both in english. I wrote an application that accesses iTunes using the COM Interface, and i am using the latest type library (1.7).
    Everything works fine, except for one odd thing: Lyrics.
    When i get Lyrics from a track, they get truncated - one char for each line break.
    Tried the following: Added the following lyrics to a Track:
    12345678901234567890
    Works fine, when i get the lyrics, i get 20 chars and they are intact.
    Now, i change the Lyrics:
    1234567890
    1234567890
    When i now get the lyrics, i only get a string with 21 characters - the resulting string is
    1234567890<#13><#10>123456789
    (<#13><#10> are representing the ascii chars 13 and 10, not the actual strings <#13><#10>!)
    For every line break I add, i lose a char. With this Lyrics:
    1234567890
    1234567890
    1234567890
    1234567890
    the result is:
    1234567890
    1234567890
    1234567890
    1234567
    iTunes seems to have a problem with line breaks, as they are represented by 2 chars (CR+LF, Ascii 13+10) in Windows rather than 1 char (CR, Ascii 13) in UNIX.
    This seems to be a Bug in iTunes. I tried the following JScript Code:
    var iTunesApp = WScript.CreateObject("iTunes.Application");
    var currTrack = iTunesApp.CurrentTrack;
    var Lyrics = currTrack.Lyrics;
    WScript.Echo("Current Track: " + currTrack.Name);
    WScript.Echo(Lyrics);
    and this gives me:
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
    1234567890
    123456789
    As you see, it truncated the last 0.
    I am doing my real programming in Borland Delphi 7 Personal Edition, and it happens there as well - for every line break, I lose 1 Character.
    The display in iTunes Lyrics-Tab is fine and not truncated, so it just seems to be a bug in the COM-Interface. Not sure where to report them, so i'll just post here. maybe someone knows a remedy?
    Here are some Screenshots:
    iTunes and Script-Output:
    http://img474.imageshack.us/my.php?image=lyricsbroken3nd.jpg
    Selecting Lyrics in iTunes (Not sure if this is important, but notice the difference at the end of the first 3 lines and on the last one)
    http://img60.imageshack.us/my.php?image=lyrics4linesselected7yc.jpg
    My iTunes Version:
    http://img239.imageshack.us/my.php?image=version7fo.jpg
      Windows 2000   iTunes 6.0.4.2, iTunes Type Library 1.7

    Edit: I just tried a german Version of iTunes 6.0.4.2 on an english Windows 2003 Server with a different Track - same problem here.
    I then downgraded to iTunes 6.0.1.3 on the same machine - same: 1 lost char for each line break. It does not matter if I add "fresh" lyrics using iTunes 6.0.1.3 or if I query the ones made in 6.0.4.2.
    I don't have iTunes 5.0.1 anymore, but I will try to get it to try with this version.

Maybe you are looking for

  • GetParameter not working in my function?

    hi ! I have this function but seems that the getparameter in not working and least its not catching anything. public void facturando(HttpServletRequest request,HttpServletResponse response){       try{   HttpSession sesion = request.getSession(true);

  • ALSA sound not working. "-2 file not found"?

    I recently upgraded my system, changed some hardware and other things and now have figured out my sound is broken. Here is what I get: [earlz@EarlzAlpha spotify]$ speaker-test speaker-test 1.0.27.2 Playback device is default Stream parameters are 480

  • Insert comment in Table cell/row

    Is it possible to enter a comment in a specific table cell? When I try it only enters a comment for the whole/entire table. Thanks.

  • Require Help with Flash Video XML Playlist

    flash devs, all i'm doing to playin videos from a xml file - (used lots of info and code from Lee's XML Video Playlist Tutorial) after spending hours getting this to work correctly in AS3 and how i want it to work i've hit a brick wall i've got 2 com

  • Bc4j.xcfg not found

    hello, newbie get crazy, i build the bussiness components tutorial...all fing seems to be fine. if i "run" the application i get the error what the bc4j.xcfg is not found in the classpath. i can found this file inside the ..common directory of my wor