Thread: i want to eject my CD

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    4

    i want to eject my CD

    hi all


    is there any function or code in c that eject my CD ..?




    it will help me alot ...


    thanks

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058

  3. #3
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    What is your OS?

    If you use Windows, try BASS with CD plugin.

  4. #4
    Registered User
    Join Date
    Jul 2008
    Posts
    4
    i'm using windows but i compile al my programs in TC or miracle C so i don't want somthing in vc++



    thnx

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well TC is a fossil, and miracle C is a piece of crap.

    Get a compiler which belongs in this millenium, is compatible with your OS and hence has access to all the modern hardware which comes with it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    AFAIK you dont need VS to use BASS only Direct X

  7. #7
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Well TC is a fossil, and miracle C is a piece of crap.

    Get a compiler which belongs in this millenium, is compatible with your OS and hence has access to all the modern hardware which comes with it.
    Right, except you have oldies computer (P3 or below) and small size disk which force you to develop using a traditional way...
    But, as far I know, playing with multiple compilers either old or modern one is good (they said, I don't know what is the reason)...

    Btw, you just need a compiler that support 32/64?-bit architecture to use BASS library.

    BASS-CD is cool because you can detect "whether the tray is open or closed" so we can have a single toggle button to eject and close the tray,... something that hard-to-find for the source code in Google *sob*

  8. #8
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    > Right, except you have oldies computer (P3 or below) and small size disk which force you to develop using a traditional way...

    More like a 16-bit processor. The last 16-bit processor was a 286. Let's see what have come out since then:

    386 32 bits!
    486 Windows 95 (really slow!)
    Pentium (586)
    Pentium Pro
    Pentium II
    Pentium III
    Pentium IV (I think)
    Itanium
    Core
    Core 2


    so... which one do you have?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Eject a cd with C++ code
    By Yuri in forum C++ Programming
    Replies: 8
    Last Post: 08-24-2005, 01:09 AM
  2. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  3. CD Drive eject
    By bluehead in forum Windows Programming
    Replies: 4
    Last Post: 08-16-2003, 11:58 PM
  4. Nero CD recording take long time
    By Eagle16 in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 11-15-2002, 05:49 PM
  5. How to encrypt a CD perfectly?
    By Yin in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 03-13-2002, 09:02 AM