Can anyone give me the code in C for ejecting the CD-drive ?
Thanks in advance! 15 8638
On 17 Mar 2006 08:08:21 -0800, "pr************ *@yahoo.co.in"
<pr************ *@yahoo.co.in> wrote: Can anyone give me the code in C for ejecting the CD-drive ? Thanks in advance!
C can't do this, you need C++ (which was in fact designed around this
specific purpose). Check any standard graduate text for CD ejecting
theory and research outcomes.
On Friday 17 March 2006 16:08, pr************* @yahoo.co.in opined (in
<11************ *********@p10g2 000cwp.googlegr oups.com>): Can anyone give me the code in C for ejecting the CD-drive ? Thanks in advance!
Yes, but not here. Ask in a group that discusses your particular OS.
--
BR, Vladimir
C'est magnifique, mais ce n'est pas l'Informatique.
-- Bosquet [on seeing the IBM 4341]
On 17 Mar 2006 08:08:21 -0800, "pr************ *@yahoo.co.in"
<pr************ *@yahoo.co.in> wrote: Can anyone give me the code in C for ejecting the CD-drive ? Thanks in advance!
<OT>
int main(void)
{
t3d_open_CD_TRA Y();
return(0);
}
/* unfortunately the contents of particular t3d function do not yet
exist. If it did the function could also have been called using
atleast folllowing alias names:
- t3d_environment _OPEN_n_CD_DRIV E
- t3d_environment _EJECT_n_CD_DRI VE
- t3d_environment _EJECT_CD();
- t3d_avaa_CD_ASE MA(); //Finnish example
- t3d_öppna_CD_LU CKAN //Swedish example
- t3d_remove_CD_D ISC http://www.tele3d.com/t3d/language.pdf
t3d programming language and the structure of t3d function prototype
are now trademarks of Juuso Hukkanen. ( TM's will be donated to
charity.)
If OP can't wait, google: stdio.h "eject cd"
*/
<OT>
Juuso
"pr************ *@yahoo.co.in" wrote: Can anyone give me the code in C for ejecting the CD-drive ? Thanks in advance!
My DS-6000 will do it with:
i = i++;
However, this doesn't work on my DS-6100.
Your system may require something else entirely.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer .h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th***** ********@gmail. com> pr************* @yahoo.co.in wrote: Can anyone give me the code in C for ejecting the CD-drive ? Thanks in advance!
#include <stdio.h>
int main(void) {
printf("Please press the CD eject button on the cd-player\n"
"Press <ENTER> when you're done.\n");
getchar();
printf("The CD drive has been ejected.\n");
return 0;
}
--
If you're posting through Google read <http://cfaj.freeshell. org/google>
<pr************ *@yahoo.co.in> wrote in message
news:11******** *************@p 10g2000cwp.goog legroups.com... Can anyone give me the code in C for ejecting the CD-drive ? Thanks in advance!
Sure. The following code shows how to do a raw CD player for DOS. http://my.execpc.com/CE/AC/geezer/software/
"play audio CD without MSCDEX" http://my.execpc.com/CE/AC/geezer/software/cdplay.c
You didn't say Linux or Windows... Besides, it shows you _everything_
you'll ever need to program a CD player.
Rod Pemberton
Rod Pemberton wrote: <pr************ *@yahoo.co.in> wrote in message news:11******** *************@p 10g2000cwp.goog legroups.com... Can anyone give me the code in C for ejecting the CD-drive ? Thanks in advance!
Sure. The following code shows how to do a raw CD player for DOS. http://my.execpc.com/CE/AC/geezer/software/ "play audio CD without MSCDEX" http://my.execpc.com/CE/AC/geezer/software/cdplay.c
You didn't say Linux or Windows... Besides, it shows you _everything_ you'll ever need to program a CD player.
My DS-6000 doesn't run DOS, Linux, or Windows. Nor does it have anything
called "ATAPI", or "Interrupt 19".
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer .h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th***** ********@gmail. com>
Kenneth Brody <ke******@spamc op.net> writes: My DS-6000 doesn't run DOS, Linux, or Windows. Nor does it have anything called "ATAPI", or "Interrupt 19".
You should really upgrade to the DS 9000. The 6000 is ancient
history these days.
--
"We put [the best] Assembler programmers in a little glass case in the hallway
near the Exit sign. The sign on the case says, `In case of optimization
problem, break glass.' Meanwhile, the problem solvers are busy doing their
work in languages most appropriate to the job at hand." --Richard Riehle
On Fri, 17 Mar 2006 16:13:34 +0000, W Marsh <wa*********@gm ail.com>
wrote in comp.lang.c: On 17 Mar 2006 08:08:21 -0800, "pr************ *@yahoo.co.in" <pr************ *@yahoo.co.in> wrote:
Can anyone give me the code in C for ejecting the CD-drive ? Thanks in advance!
C can't do this, you need C++ (which was in fact designed around this specific purpose). Check any standard graduate text for CD ejecting theory and research outcomes.
What complete and utter nonsense!
C++ cannot eject CD drives. It can only eject C++D drives!
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++ http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Roy Riddex |
last post by:
Hi
I'm wanting to create a cd-rom which boots automatically when it's inserted
into the computer. What I hope to achieve is for a VB6 program to run
automatically when the cd boots up. Can this be done? if yes, then how?
Also, how do I link a command button click to the opening of files within
the cd, i.e. word, excel and access files?
Thanks
|
by: chichi |
last post by:
Hi there!
I was wondering if somebody could tell me how to edit the following
ASP code so that the text within the tables appears as Font Color
"00FF00". Right now it is appearing in BLACK and since I want the
background to be black, it kind of poses a problem. :0 Also, if
possible, could you tell me how to change the color of the spaces
inside the table?
Thanks in advance!
Chichi
HERE IS THE CODE:
|
by: DBNovice |
last post by:
I have a database that keeps records on the issue and failure of an item.
Currently, the database is poorly desisned; therefore I'm performing queries
to break the data into normalized tables and attempting to perform a "left
join" query to build a cross-reference table.
The left join query is currently taking nearly 2 hours for MySQL to process,
using Navicat as a front-end. My system specs are 1.4Mhz Pentium Processor
with 1GB of RAM...
|
by: Paddy |
last post by:
Is it possible to send (char)12 to the printer to
make it eject?
If so, how can that be done?
If not, how can a page be ejected differently?
Many thanks.
|
by: Barkha Shah |
last post by:
Hi All,
I am looking for a tool/utility that converts the address into source code
line.
Purpose is that I have written a basic mfc application that purposely has a
memory leak.Now at the exit of the application I get a memory dump in the
output window as mentioned below. Its a simple program that I know where the
memory leak is but in the bigger application I am not able to figure out
source code line. Any help on this respect would be...
| |
by: Joe Cool |
last post by:
I have some shareware CD/DVD burning software that has a command line
interface, perfect for writing you own CD/DVD custom burning software.
I have an app that burns a few DVDs. Recently I have had some problems
with good burns. Occasionally a recently burned DVD is unreadable. At
least one file will get a CRC error when trying to read it. So I wrote
a simple verification program that makes sure all files on a CD/DVD
are readable. Now, I...
|
by: zacks |
last post by:
I use some shareware CD/DVD burning software that has a command line
interface version. This allowed me to write my own custom SDK that
performs various CD/DVD burning operations from my own VB.NET
applications.
Recently, I had some problems reading DVDs that I had recently burned,
reading them with the same DVD device that burned them. So I wrote a
quickie verification program that simply attempts to binary read all
files on the disk.
|
by: anilkumarkp |
last post by:
Hai
I have to print a receipt in pre-printer stationary with bar code, My paper size is 4", i have set the paers size as
Printer.ScaleMode = 1 ' vbTwips
Printer.Height = 4 * 1440
Printer.width = 8 * 1440
but after priting this, when i put Printer.EndDoc, it is skiping the all 12" paper, in this 12" i have to print 3 receipt (4x3). If i have not used the Printer.EndDoc it is not going to the spooler,
|
by: SM |
last post by:
Hello,
I have a xml file that contains the CD library of one artist. I want
to extract all the tracks from a specific CD. I was able to extract
the title of all the cd's but not the tracks of one specific CD.
How can i extract track titles from a specific CD?
Here's how my code looks like:
var xmlResponse = xmlHttp.responseXML;
xmlRoot = xmlResponse.documentElement;
|
by: whitep8 |
last post by:
Hi all,
Im very new to java and getting there slowly.
Im working on basic class functions. Im totally fine with get and set, storing objects into an array and recalling them, but im totally stuck with the following:
declare and set max (using cd.getCost())
declare and set maxIndex
for each remaining CD
If CD cost is bigger than max
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |