Search found 6450 matches

by dodicat
Jul 05, 2020 0:33
Forum: Tips and Tricks
Topic: Yet another expression parser (spreadsheet)
Replies: 16
Views: 204

Re: Yet another expression parser (spreadsheet)

The second one down
FreeBASIC-1.07.1-win64.zip

I think you use your own ide?
Just unzip and point to fbc.exe.
by dodicat
Jul 05, 2020 0:19
Forum: Tips and Tricks
Topic: Yet another expression parser (spreadsheet)
Replies: 16
Views: 204

Re: Yet another expression parser (spreadsheet)

Here is the official 1.07.0 compiler Success ( 3.017646400025114 seconds) FreeBASIC Compiler - Version 1.07.0 (08-25-2019), built for win64 (64bit) Copyright (C) 2004-2019 The FreeBASIC development team. standalone -gen gcc -Wc -O3 As you see it compiled here. Your Version 1.07.0 (08-19-2019), built...
by dodicat
Jul 05, 2020 0:03
Forum: Tips and Tricks
Topic: Yet another expression parser (spreadsheet)
Replies: 16
Views: 204

Re: Yet another expression parser (spreadsheet)

jj2007
What version of freebasic do you use?
by dodicat
Jul 04, 2020 21:15
Forum: Community Discussion
Topic: Getting old
Replies: 37
Views: 834

Re: Getting old

Is that why you have all those bird boxes in your garden, to lure the unsuspecting moggy?
What do your neighbours think, are they cat lovers also?
by dodicat
Jul 04, 2020 20:56
Forum: Tips and Tricks
Topic: Yet another expression parser (spreadsheet)
Replies: 16
Views: 204

Re: Yet another expression parser (spreadsheet)

for 32 bits I think FUNCTION Eval.Cell() AS LONGINT DEB() VAR c = 0ll, r = 0, nc = 0, nr = 0, dig = -1 That is c should be a longint, I was getting an overflow in RETURN c SHL 32 + r 64 bits no optimisations no problem. Neat parser. How do you get all those warnings and error jj2007? If I do 64 bit ...
by dodicat
Jul 04, 2020 15:56
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 43
Views: 818

Re: SOLVED - MPEG2 Play Code and Win10

Here is a more accurate progress, tested on .mpg files, again using status for length and position. #define WIN_INCLUDEALL #include "Windows.bi" #include "win/mmsystem.bi" #Include once "/win/commctrl.bi" #include "file.bi" #define nul chr(0) const k=.2 Declar...
by dodicat
Jul 04, 2020 14:29
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 43
Views: 818

Re: SOLVED - MPEG2 Play Code and Win10

I have updated my previous code to incorporate the stopped flag (sent by mciSendString)
Note the zstring * 20 into the second parameter, and set 20 characters in the third.

mciSendString("status file1 mode ",@ans,20,0) is in the loop so it receives messages.
by dodicat
Jul 04, 2020 12:57
Forum: Community Discussion
Topic: Getting old
Replies: 37
Views: 834

Re: Getting old

Numbers and random numbers are an invention of the human brain alone. We use numbers so we can live comfortable and organised lives. No other species, as far as we know, need a number system. The universe is a complete mystery to us. We explore it only by actually going to places in it (The moon so ...
by dodicat
Jul 04, 2020 9:38
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 43
Views: 818

Re: SOLVED - MPEG2 Play Code and Win10

The little sub Sub done Destructor mciSendString("close file1", NULL, 0, 0) End Sub This sub will run on exit regardless of how you exit. If you close the program by closing the console box say, then it will run after that, it just closes the program cleanly to the system. You can test by ...
by dodicat
Jul 04, 2020 0:08
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 43
Views: 818

Re: SOLVED - MPEG2 Play Code and Win10

I haven't found how to get the return percentage of the file run (yet), but I have made an estimate via filelen, a little progress line at the bottom. It is a temporary method until I figure out the proper way. Also I have set a const of k=.2 which centralises the viewing area (.2 * width and height...
by dodicat
Jul 03, 2020 22:10
Forum: Libraries
Topic: mpdecimal for Windows
Replies: 7
Views: 310

Re: mpdecimal for Windows

Thanks srvaldez. I'll test it later. deltarho[] fb has log10 #include "crt.bi" print log10f(8) print log10(8) sleep I also read this: Benford’s Law,states that the fractional part of the logarithm of random data is uniformly distributed between 0 and 1. So, for instance, in a set of figure...
by dodicat
Jul 03, 2020 14:48
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 43
Views: 818

Re: SOLVED - MPEG2 Play Code and Win10

Your gfx code works well
screencontrol(103,"GDI") stops flickering, so no need really to use an opengl screen(like mine).
You can have a little do loop instead of sleep 3000
Inside the loop you can select case options.
Nicely done.
by dodicat
Jul 03, 2020 12:48
Forum: Windows
Topic: SOLVED - MPEG2 Play Code and Win10
Replies: 43
Views: 818

Re: SOLVED - MPEG2 Play Code and Win10

I'll investigate that. It has something to do with status file1 file completion Anyway, here is the video on a gfx screen. (actually an opengl screen, which is not strictly gfx) #define WIN_INCLUDEALL #include "Windows.bi" #include "win/mmsystem.bi" #Include once "/win/commc...
by dodicat
Jul 03, 2020 11:24
Forum: Libraries
Topic: mpdecimal for Windows
Replies: 7
Views: 310

Re: mpdecimal for Windows

Hi srvaldez
I keep going to your download link (Dark page with the filename at the top left), but I always get that little win 10 waiting circle going round and round.
Maybe it is because of the slow broadband connection here.
I'll keep trying.
by dodicat
Jul 02, 2020 19:00
Forum: Tips and Tricks
Topic: Smoky Zoom Effect
Replies: 5
Views: 221

Re: Smoky Zoom Effect

I like your thing that much that I made it into a movie.
https://www.mediafire.com/file/pl93s3xctak56en/ground_control.zip/file
(Windows only)

Go to advanced search