CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: CDROM

  1. #1
    Join Date
    Apr 1999
    Posts
    2

    CDROM

    How can I open/close CDROM in my program?
    Thanks.


  2. #2
    Join Date
    May 1999
    Posts
    7

    Re: CDROM


    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 .



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured