Solved

windows cdplayer.ini

Posted on 1998-12-06
3
167 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 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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