#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    9
    Rep Power
    0

    lil newb help:function problems


    oky i found this function on the net...compied it in a **** .. should be working right but problem is i have a lil problem suplieng it the arguments and info its needs...
    the record looks like this:
    type
    TID3Rec = packed record
    Tag : array[0..2] of Char;
    Title,
    Artist,
    Comment,
    Album : array[0..29] of Char;
    Year : array[0..3] of Char;
    Genre : Byte;
    end;
    and the procedure like this

    procedure ChangeID3Tag(NewID3: TID3Rec; mp3FileName: string);


    this is how it looks and yeah its for chaning id3 tags on mp3 files.. i kinda figured it has something to do with the record..so i made a new rcord and tired to put it as a argument but well aparently i did it worng so plz help me
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    32
    Rep Power
    11

    Talking


    Hi there

    i'll need the definition of TID3Rec first to see what structure the record has but generally you do .....

    var
    myNewRecord : TID3Rec;
    mp3FileName : string;

    begin

    myNewRecord := new(TID3Rec);
    try
    mp3FileName := 'C:\mymp3.mp3';
    MyNewRecord.whatever := blahhhh;
    MyNewRecord.whatever := blahhhh;
    ChangeID3Tag(MyNewRecord, mp3FileName);
    finally
    dispose(MyNewRecord);
    end;

    end;

    that should work.....
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    9
    Rep Power
    0

    thnx


    ill try it out hope i can get it working
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    9
    Rep Power
    0

    Thumbs up hmm


    well still not working 100%

    type
    TID3Rec = packed record
    Tag : array[0..2] of Char;
    Title,
    Artist,
    Comment,
    Album : array[0..29] of Char;
    Year : array[0..3] of Char;
    Genre : Byte;
    end;

    this is the record..so if anybody have a look plz help me again..ill ofcourse keep workiing on it

IMN logo majestic logo threadwatch logo seochat tools logo