Click to See Complete Forum and Search --> : CDROM


Ma Long
April 15th, 1999, 06:58 AM
How can I open/close CDROM in my program?
Thanks.

fab
April 15th, 1999, 07:52 AM
Hallo .
If you want to write only a console application, you can open a CDROM file
by the function fopen and you can close the file by fclose function .

If you write a windows application, you can use the API function
GetOpenFileName: this allows you (by a dialog window) to select the CDROM file
that you want to open (infact in the structure LPOPENFILENAME
(in field lpstrFile) this function stores the string that contains the path
of chosen file); then you can use the function fopen to open a chosen file,
and the function fclose to close this file .