Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

windows cdplayer.ini

Posted on 1998-12-06
3
Medium Priority
?
176 Views
Last Modified: 2006-11-17
I need to now how to create a cd id in the same format that the cdplayer.ini file uses.

thanks for your help
0
Comment
Question by:cando
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 300 total points
ID: 1349478
Try this (from an example in my CDPLAYER.INI file)

with TIniFile.Create('C:\Windows\CDPLAYER.INI') do
  try
    WriteInteger('2D17961','EntryType', 1);
    WriteString('2D17961, 'artist', 'New Artist');
    WriteString('2D17961, 'title', 'New Title');
    WriteInteger('2D17961', 'numtracks', 20);
    WriteString('2D17961, 'order', '');
    WriteInteger('2D17961', 'numplay', 0);
  finally
    Free;
  end;

Cheers,

Raymond
0
 

Author Comment

by:cando
ID: 1349479
works good, but how would I read all of the information for one cd from the cdplayer.ini
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1349480
Look at the ReadString etc methods of TIniFile. Basically do the same in my code but use the read methods instead of the write methods.

Cheers,

Raymond.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question