Search found 497 matches

by pjw
Thu Feb 14, 2019 12:57 am
Forum: Software & Programming
Topic: C++
Replies: 22
Views: 1514

Re: C++

EDIT: http://www.sinclairql.net/qlt/QLToday_V15-I2.pdf - volume 15, issue 2, Dec 2010-Jan 2011, starts page 7. Hi Norm! A rip-roaringly good read, that. Thanks for the reminder! Between what TT and LT write, apart from their philosophical objections, its seems to me that C++ is not really suitable ...
by pjw
Tue Feb 12, 2019 11:26 pm
Forum: Software & Programming
Topic: C++
Replies: 22
Views: 1514

Re: C++

Anyway, don't let Tony Tebby hear you mention classes or objects as I seem to remember him slagging them off big time in an article in QL Today. Wasnt that Linus Torvalds? I know he was pretty abusive about c++. Thought the best thing about it was that it'd keep crappy programmers away from C! ;) (...
by pjw
Tue Feb 12, 2019 6:47 pm
Forum: Help for New Users
Topic: UNZIP problem
Replies: 12
Views: 1082

Re: UNZIP problem

Looks like your version of unzip may need the commands the other way round, ie not

Code: Select all

EW ram1_unzip; "-d flp2_ flp1_program_zip"

but

Code: Select all

EW ram1_unzip; "flp1_program_zip -d flp2_ "
by pjw
Thu Feb 07, 2019 4:49 pm
Forum: Software & Programming
Topic: DATA_USE
Replies: 21
Views: 1380

Re: DATA_USE

The definition is implied , IMHO. FNAME$ returns the name of the file. In Qdos & co, unfortunately, the path happens to be part of the file name: ch = fop_in(<dev><dir><filename>): print fname$(#ch) This prints the name of the file, ie <dir><filename> A directory is special, but it is also just ...
by pjw
Thu Feb 07, 2019 1:36 pm
Forum: Software & Programming
Topic: DATA_USE
Replies: 21
Views: 1380

Re: DATA_USE

Sadly, on the DOS device, the OS doesnt do the work. The OS never does the work, it's always the responsibility of the driver (and a pretty non-obvious one to boot). I was just being lazy. But now youre being pedantic ;) But as far as I can see DOS does fine? make_dir 'dos1_temp_xxx' save dos1_temp...
by pjw
Thu Feb 07, 2019 12:48 am
Forum: Software & Programming
Topic: DATA_USE
Replies: 21
Views: 1380

Re: DATA_USE

My take on it is: Let the OS do the hard work: That would have been my solution if I had remembered that FNAME$ exists ;) Sadly, on the DOS device, the OS doesnt do the work. I adapted this routine hastily from and old routine of mine. It does the job on traditional Qdos devices and, it turns out, ...
by pjw
Wed Feb 06, 2019 9:04 pm
Forum: Software & Programming
Topic: DATA_USE
Replies: 21
Views: 1380

Re: DATA_USE

My take on it is: Let the OS do the hard work: 100 DEFine FuNction DirUp$(dir$) 110 LOCal ch, l%, dr$(36) 120 l% = LEN(dir$) 130 IF l% <= 5: RETurn dir$ 150 l% = l% - 1 - (dir$(l%) = '_') 160 IF l% = 5: RETurn dir$(1 TO l%) 170 ch = FOP_DIR(dir$(1 TO l%)) 180 dr$ = FNAME$(#ch): CLOSE#ch 190 IF LEN(d...
by pjw
Thu Jan 31, 2019 10:23 pm
Forum: General QL Chat
Topic: Psion Chess
Replies: 10
Views: 1068

Re: Psion Chess

It seems to work in high colour mode on my HD monitor too. Just remember to QPC_QLSCREMU 4 first. There are a number of different hacked versions of Psion Chess out there, that work on various platforms. The version we're talking about is the first one that has worked so smoothly (for me - and I hop...
by pjw
Tue Jan 29, 2019 2:20 pm
Forum: General QL Chat
Topic: Psion Chess
Replies: 10
Views: 1068

Re: Psion Chess

Theres a version that comes with QLE that works fine in QPC2. Its not PE, but it doesnt misbehave nor does it take over the system. Both 2D and 3D seem to work ok. And it still beats me most of the time ;)
by pjw
Thu Jan 24, 2019 6:41 pm
Forum: General QL Chat
Topic: Blogtrottr
Replies: 11
Views: 1771

Re: Blogtrottr

Ok, it worked! :) I just skipped the W3C validation and all went well. Now any updates to the forum land in a special folder in my Thunderbird email client (for those who didnt already know).