Change ID3 tags
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Change ID3 tags

  1. #1
    Join Date
    Jan 2005
    Posts
    77

    Change ID3 tags

    Hi,

    I'm writing a program that needs to modify the ID3 tags of several mp3 files. I'm trying to use the code found at http://www.motobit.com/tips/detpg_change-id3-tags-script/.

    I've downloaded and registered the CDDBControl.dll and I've added a reference to it in the IDE. But whenever I run this code I get an error saying that:

    ActiveX component can't create object or return reference to this object (Error 429)
    The actual code I'm using is:
    Code:
      Private Sub Command1_Click()
      	
      	Dim id3 As New CddbID3Tag
      	Set id3 = CreateObject("CDDBControl.CddbID3Tag")
      	
      	id3.LoadFromFile "C:\Documents and Settings\David\Desktop\test.mp3", False
      	id3.Album = "TEST ALBUM"
      	id3.Title = "TEST CHANGED TITLE"
      	id3.SaveToFile "C:\Documents and Settings\David\Desktop\Tell It Like It Is.mp3"
      	
      End Sub
    Can anyone tell me what is wrong or how I can solve this problem?

    Thanks very much,

    dhartigan

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Change ID3 tags

    If you added a reference, then don't use CreateObject(). Is that the line where the error occurs? Try it without that line.
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  3. #3
    Join Date
    Jan 2005
    Posts
    77

    Re: Change ID3 tags

    That works fine now. Thanks very much WizBang.

    dhartigan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center