Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DUGL PLayer 0.51 RC (Announce)

posted by Rugxulo Homepage, Usono, 18.06.2013, 15:51


#include <stdio.h>
#include <stdlib.h>
#include <dir.h>

int main(void)
{
  /*
     DGL115P3.ZIP's GUI-UTIL.CC function FilesBox's line 179
     calls getdisk() & setdisk(), so that's presumably the
     problem I'm seeing here.
  */

  /* ... test ... */

  printf("%d",setdisk('c'-'a')); /* switches to C:             */
                                 /* returns 7 with LASTDRIVE=G */

  /* setdisk(6); */              /* switches to G: */

  /*
    "info libc alpha setdisk" actually says this:

    printf("There are %d drives\n", setdisk(getdisk()));

    ... which is misleading because there is a gap between drive
        letters, i.e. there are no (working) D:, E:, F: drives.

        I do have SHCDX33F and UIDE loaded for D: but never have any
        CD in the drive. Trying to access it empty gives a critical
        error (drive not ready).

        Trying to access either E: or F: gives a non-critical error
        (invalid path).
  */

  return EXIT_SUCCESS;
}

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 400 users online (0 registered, 400 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum