Search found 50 matches

by hellomike
Sun 26 May 2019, 16:12
Forum: BBC BASIC language
Topic: Determining Variable Type
Replies: 7
Views: 2551

Re: Determining Variable Type

Yes, I see. Looks tricky.
Seems you can get rid of all local variables starting with W, except W$, not?

Anyhow, can't think of a more straightforward way of achieving what you need.

Would be nice if Richard would still be on-board to give advise.

Mike
by hellomike
Sat 25 May 2019, 20:17
Forum: BBC BASIC language
Topic: Determining Variable Type
Replies: 7
Views: 2551

Re: Determining Variable Type

Hi,

Maybe with a combination using the ^ operator and the "Variable storage in memory" help section....

Did you try/test that?

Mike
by hellomike
Sat 11 May 2019, 18:03
Forum: Tools and Utilities
Topic: Cross Reference
Replies: 4
Views: 3942

Re: Cross Reference

Long time ago I had one of the Utilities not working and remember I fixed it by checking BB4W registry settings.
Search the Help for "registry" to obtain the correct locations and then use Regedit to check the keys.

Hope this helps.

Mike
by hellomike
Thu 14 Feb 2019, 21:55
Forum: BBC BASIC language
Topic: Structure prototypes in Structure DIMs
Replies: 2
Views: 2662

Re: Structure prototypes in Structure DIMs

Hi,

Actually it very much is in the manual!

http://www.bbcbasic.co.uk/bbcwin/manual ... tructproto

Regards,

Mike
by hellomike
Fri 08 Feb 2019, 16:26
Forum: User Interface
Topic: Screen dimensions
Replies: 15
Views: 8329

Re: Screen dimensions

Yes, the old-days notation PRINT $$(cb%+4), I grasp. The string data that "EnumDisplayDevicesA" returns lay within the 424 bytes of the structure. Its no use the put pointers in the structure beforehand to instruct the "EnumDisplayDevicesA" function as to where to store its string data. So I'm very ...
by hellomike
Tue 05 Feb 2019, 19:27
Forum: User Interface
Topic: Screen dimensions
Replies: 15
Views: 8329

Re: Screen dimensions

Hi, Actually I don't understand how the modification done by DDRM does give a reasonable output and not a crash since the structure doesn't seem in the correct format. DIM displaydeviceA{cb%,devicename%,devicestring%,stateflags%,deviceid%,devicekey%} defines a structure of 4+4+4+4+4+4=24 bytes, whil...
by hellomike
Fri 04 Jan 2019, 13:49
Forum: Database and Files
Topic: INPUT# and line feeds
Replies: 11
Views: 7399

Re: INPUT# and line feeds

Hi,

What you experience and/or need might be documented here:

http://www.bbcbasic.co.uk/wiki/doku.php ... xt_20files

Hope this helps.

Mike
by hellomike
Fri 27 Jul 2018, 09:53
Forum: Assembly language
Topic: Older code now crashes!
Replies: 4
Views: 4407

Re: Older code now crashes!

Well, it gets even better. I simplified the code as follows: DIM Dimmed% 15 P%=Dimmed% [OPT 3 ret ] CALL Dimmed% SYS "GlobalAlloc", 0, 16 TO GAlloc% IF GAlloc%==0 ERROR 100,"GlobalAlloc failed" P%=GAlloc% [OPT 3 ret ] REMCALL GAlloc% SYS "GlobalFree", GAlloc% END This works but when I remove the REM...
by hellomike
Wed 25 Jul 2018, 08:57
Forum: Assembly language
Topic: Older code now crashes!
Replies: 4
Views: 4407

Re: Older code now crashes!

Thanks folks. Yes, my Win10 has a very deeply rooted abnormality somewhere. VirtualRPC stopped working (crashes) and the Win10 1803 update just doesn't install. I would almost suspect a virus, almost. But this is so basic. For a while I suspected the two values on the stack because when the code ret...
by hellomike
Mon 23 Jul 2018, 20:18
Forum: Assembly language
Topic: Older code now crashes!
Replies: 4
Views: 4407

Older code now crashes!

Hi, IN 2014, I contributed the following program to Rosettacode. http://rosettacode.org/wiki/Machine_code#BBC_BASIC As you can see, a very small and simple program. Of course I tested it thoroughly. Today, in 2018, I find that exactly the same code now crashes BB4W! Differences 2014 vs 2018 (now): W...