BMP also opens a channel to read the filenames from the picture
directory with DJ_OPEN_DIR.
Is this program on the web somewhere - preferrably with sources??
Yes - BMP.OBJ (a Windows BMP to QL graphics converter) is on the graphics page on my website (I am the author). The version on there is the one BEFORE Bob Spelten modified some of the code. I have not yet had time to put the new version on.

DJ_OPEN_DIR is a DJ Toolkit function to open a channel to a directory, like TK2's FOP_DIR. DJToolkit is at http://www.dilwyn.me.uk/tk/index.html

The routine referred to is essentially the same as:

chan = FOP_DIR(filename$)
directory_name$ = FNAME$(#chan)
CLOSE #chan

a routine used to extract the directory part of a filename (to separate the directory part and filename part. There was an articoe in QL Today about this some time ago, there is a copy of that article provided by the author on my website at http://www.dilwyn.me.uk/docs/articles/index.html called Directory Name Functions

Using FNAME$ to return the name of a directory was something I pestered Marcel about in the fairly early days of QPC2. At that time, it either failed completely or always returned "" although Toolkit 2 versions usually return the directory name on level 2 filing systems, even though it wasn't in original Toolkit 2 manuals.

Wolfgang
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2897 / Virus Database: 2639/6076 - Release Date: 02/02/13
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to