Code: Select all
memcpy(&myDTA, Fgetdta(), sizeof(DTA));
I'm using Pure C 1.1 and if I enter the debugger via Alt-D I can see the filename in d_fname. But if I start the program via Alt-R (Run) then d_fname is filled with 0-Bytes and no filename is displayed. Same if I call the application from desktop.
Something wrong with checking DTA or is there a more suitable way of getting the filename?