[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] some gem question



For example: I update some things on main dialog
(time, scrolling text etc) but when I click "about application", redrawing
stops and I have to close that about dialog.

To avoid that problem you f.e. have to divide the program into separate "threads", where one thread handles your main dialog, and another one handles the about dialog. This may be accomplished in several different ways.

For example, Pure C did this for me quite well - there are 3 starting module
to choose (standard, ARGV and ARGV & env, IIRC) but in MiNTLib?

IIRC, MiNTLib parses the ARGV= completely and converts into standard C argument vector (argv). Forget about ARGV= then, and access the arguments the usual way C requires.

long names & fsfirst: it's nice we have some Pdomain() call but FsFirst and
FsNext ignores long names completely.

Yes. It is supposed to do so.

On fat32/vfat partitions they return
famous name~1.ext type but on ext2 they ignore(!) that files! So I have
directory with one "normal" name and two long names and the result? FsFirst
found one file... If this functions aren't supposed to work with long names,
how to list the directory content with such names? using opendir(), readdir()?
Aren't they MiNT-only calls?

MiNT calls are Dopendir(), Dreaddir(), Drewinddir() and Dclosedir(). opendir(), readdir(), rewinddir() and closedir() aren't MiNT calls at all, these are MiNTLib functions. I suppose that if a system lacks the Dopendir() et consortes, MiNTLib emulates them using Fsfirst()/Fsnext().

KMK