Search found 5503 matches

by counting_pine
Mar 29, 2019 14:39
Forum: Windows
Topic: PALETTE USING and SCREEN bug on newer windows OS
Replies: 7
Views: 4439

Re: PALETTE USING and SCREEN bug on newer windows OS

Interesting... I could be wrong about this, but I seem to recall FB does its own palette rendering, and just uses RGB mode on the final Windows screen.. Either way, Screen and Screenres should behave the same way in most respects. There are no deep architectural differences. Can you provide code tha...
by counting_pine
Mar 25, 2019 14:49
Forum: Windows
Topic: Windows 10 Window Close
Replies: 12
Views: 4847

Re: Windows 10 Window Close

Hmm, lang qb doesn't allow me to declare SetConsoleCtrlHandler() properly (it requires ' __extern "Windows" ', which apparently isn't allowed). Therefore, lang qb code will probably have to use a second file for the error handler. '' handler.bas #lang "fb" '' override '-lang qb' ...
by counting_pine
Mar 25, 2019 14:23
Forum: Community Discussion
Topic: Where can I get a Recent-Git-Build of FreeBASIC?
Replies: 434
Views: 68219

Re: Where can I get a Recent-Git-Build of FreeBASIC?

Git builds probably shouldn't just have the next version number. It would be better for them to be versioned by commit id, or possibly feature tthe build date prominently.
by counting_pine
Mar 24, 2019 17:20
Forum: Windows
Topic: Windows 10 Window Close
Replies: 12
Views: 4847

Re: Windows 10 Window Close

Actually, looking at https://stackoverflow.com/questions/28596235/graceful-exit-when-closing-console-window, you can do processing/cleanup in the error handler, but when the program closes when the handler finishes, so FB's handler that sends keys to the Inkey buffer would be ineffectual. Anyway, I'...
by counting_pine
Mar 24, 2019 17:02
Forum: Windows
Topic: Windows 10 Window Close
Replies: 12
Views: 4847

Re: Windows 10 Window Close

Hmm, I guess Microsoft may have changed their policy on terminating console programs over different versions over the years.. Searching the wider Internet finds questions like https://stackoverflow.com/questions/28596235/graceful-exit-when-closing-console-window, which generally seem to suggest usin...
by counting_pine
Mar 23, 2019 17:27
Forum: Windows
Topic: Windows 10 Window Close
Replies: 12
Views: 4847

Re: Windows 10 Window Close

k6sti wrote:I tried adding SCREEN 0. It did not help.

Oh, I forgot to mention - Screen 0 exits the graphics screen (if any) and uses the console, so it doesn't actually count as a Screen mode.
by counting_pine
Mar 23, 2019 16:52
Forum: Windows
Topic: Windows 10 Window Close
Replies: 12
Views: 4847

Re: Windows 10 Window Close

OK.. Can you post some example code, as fxm suggests? That would help us all to be on the same page.
For me on Windows 7, the console 'X' button actually just closes the program immediately. I'm not even sure if it has a chance to register the button is clicked.
by counting_pine
Mar 23, 2019 15:34
Forum: Windows
Topic: Windows 10 Window Close
Replies: 12
Views: 4847

Re: Windows 10 Window Close

Could it be that you're checking for Chr$(255)+"k" instead of Chr$(0)+"k"? QB has historically used 0, but FB switched to 255, due to quirks with the Null character. This code should work: '$lang: "qb" screen 13 print "Press the X to close" do sleep loop until...
by counting_pine
Mar 19, 2019 14:02
Forum: DOS
Topic: Fb upgrade problems
Replies: 2
Views: 3868

Re: Fb upgrade problems

Is it a custom .bi file? I think the problem is caused by this changelog item: Version 1.06.0 [changed] - Name mangling of Integer/Long parameters was reversed on 32bit to match 64bit, so the same FB and C++ code will be compatible on both 32bit and 64bit. Integer is mangled as C++ long (except on W...
by counting_pine
Mar 15, 2019 21:16
Forum: Tips and Tricks
Topic: Layered Parallax Effect v0.70
Replies: 14
Views: 1536

Re: Layered Parallax Effect v0.65

"something off" means what exactly? ^^ The trapezoid transformation code is not the best.¯\_(ツ)_/¯ Thanks for adding the 'X' close ability. I guess "something off" is just the first impression I get when looking at it. It's difficult to be precise how, but decades of looking at ...
by counting_pine
Mar 15, 2019 15:35
Forum: Tips and Tricks
Topic: Layered Parallax Effect v0.70
Replies: 14
Views: 1536

Re: Layered Parallax Effect v0.6

Nice, although is it just me, or is there something off about the way the background image is transformed? Also, as with most mouse interaction demos, this is one of those cases where it would be great to allow the user to exit with the 'X' button on the title bar. (For many user setups, Esc is the ...
by counting_pine
Mar 15, 2019 15:24
Forum: General
Topic: Self-referential initialisation by Dim.
Replies: 7
Views: 600

Re: Self-referential initialisation by Dim.

It's a long-standing bug in the compiler. I'm not sure a report was filed, but a thread about it is here: https://freebasic.net/forum/viewtopic.php?f=3&t=19752 EDIT: other threads: https://freebasic.net/forum/viewtopic.php?p=88956#p88956 https://freebasic.net/forum/viewtopic.php?p=93504#p93504 I...
by counting_pine
Mar 13, 2019 21:33
Forum: Community Discussion
Topic: Getting blocked by Immunify360 while accessing the forum
Replies: 12
Views: 1246

Re: Getting blocked by Immunify360 while accessing the forum

Plasma says he has disabled ModSecurity.
Please let us know whether there’s any improvement.
If it still happens, the problem probably lies elsewhere (and we should also probably consider reenabling ModSecurity if it’s not causing problems, to help keep the site secure.)
by counting_pine
Mar 12, 2019 23:54
Forum: Community Discussion
Topic: Getting blocked by Immunify360 while accessing the forum
Replies: 12
Views: 1246

Re: Getting blocked by Immunify360 while accessing the forum

If your cpanel shows it disabled, then I'm guessing the hosting provider is running it at a higher level. Considering what caseih noted: you just might gain some finer-grained control, if you actually "enable" it, in the CPanel (just assuming, here). Some options might pop up, currently h...
by counting_pine
Mar 12, 2019 23:52
Forum: Tips and Tricks
Topic: windows message & dialog boxes
Replies: 10
Views: 1724

Re: windows message & dialog boxes

I'll consider what you've said, but I would still rather you didn't get involved.
It would be better for you just to report posts you consider problematic, and let us choose how to deal with it.

Go to advanced search