10 December 2018, 18:45 | #1 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Blitz & Reqtools Library
Hi Guys,
Back in 1999 I wrote a program that displays area codes using blitz. It was tested (by various people) and released fully working. Recently I have been going through my old source and progs, and this program no longer works. For some reason when I try and get the directory from the reqtools requester it is returning the requester title instead of the dir. Now this definitely worked in 1999 or whenever I last updated it, and now it doesn't. Code for the reqtools file rquester is below. Code:
.filere ; This routine setsup a file requester inc.. Flags etc.. Dim filtags.TagItem(2) *ress.rtFileRequester=0 *ress=rtAllocRequestA_(#RT_FILEREQ,0) RTS ;----------------------------------------------------------------------------- .filereq filtags(0)\ti_Tag=#RT_Underscore, 95 filtags(1)\ti_Tag=#TAG_DONE res.l=0 res.l=rtFileRequestA_ (*ress,&filenme,&titl,&filtags(0)) If res dirnme.s=NPeek$(*ress\Dir) ; NPrint dirnme If dirnme<>"" If Right$(dirnme,1)<>":" Then dirnme+"/" stry$=dirnme+filenme If loads=1 NSetStringText 4, stry$ NRefreshGadget 4 topr$=stry$ ; NPrint stry$ ; NPrint "topr$="+topr$ loads=0 Else codename$=stry$ ; NPrint stry$ JSR loadcodes EndIf Else *ress\Dir=dirnme EndIf EndIf RTS |
12 December 2018, 20:46 | #2 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Anyone?
|
13 December 2018, 10:20 | #3 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
|
I don't know since I've never used ReqTools with Blitz, but it sounds like the code might be using a different NewType to the expected one. If you're trying to compile it with an updated Blitz environment, perhaps the relevant include, resident or command library has changed, shifting the fields along.
|
13 December 2018, 20:30 | #4 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
The only difference between 1999 and 2018 is the version of WB. I might have to try it in a wb3.0 environment.
I have the same blitzlibs, deflibs, resident files etc.. The directory is returned in the Dir structure as per the reqtools docs, and I have a working exe of the same program so somthing is amiss! |
13 December 2018, 22:05 | #5 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
|
Hmmm, I really can't imagine it's the Workbench version but yeah, no harm trying anyway, just in case. That's very odd...
|
14 December 2018, 06:37 | #6 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
I agree totally, I doubt it's the version of wb but worth looking into.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Argh!! reqtools.library!!! | Analog-X64 | New to Emulation or Amiga scene | 10 | 03 October 2021 18:29 |
CDXL library for Blitz? | earok | Coders. Blitz Basic | 4 | 12 October 2016 23:22 |
How to do AGA copperbars in Blitz using display library | Coagulus | Coders. Blitz Basic | 9 | 25 January 2016 15:53 |
unable to open reqtools.library | RabidRabbit | support.WinUAE | 6 | 31 March 2009 13:43 |
Blitz Basic 1 & 2 | Twiggy | Coders. General | 14 | 21 February 2009 15:29 |
|
|