Search found 1565 matches

by paul doe
Mar 01, 2024 21:00
Forum: General
Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
Replies: 10
Views: 966

Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals

For the last time, I know all this. But I have a hard time figuring out a useful use case for this. Operators be operators; we use them in expressions , we don't pass them as arguments to functions. The only language I can think of that has this feature is Forth, and that only because of its archite...
by paul doe
Mar 01, 2024 11:15
Forum: General
Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
Replies: 10
Views: 966

Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals

What would be a valid use case for this? Either I'm missing something, or I don't see the point of it...
by paul doe
Dec 14, 2023 22:53
Forum: General
Topic: slow to execute after compiling source code
Replies: 11
Views: 1144

Re: slow to execute after compiling source code

You can add a one-time exclusion of virus scans for the 'FBIDETEMP.exe' file only. I tried this a while back. Turns out it doesn't work, since the file gets deleted after the execution ends. And so the brand new FBIDETEMP.exe is considered a new file and gets scanned anyway :roll: For my PC, it wor...
by paul doe
Nov 14, 2023 17:03
Forum: General
Topic: slow to execute after compiling source code
Replies: 11
Views: 1144

Re: slow to execute after compiling source code

Turning off real time protection fixed the issue!! However that apparently means leaving it vulnerable to malware. Also it says after a short time it will turn it back on automatically. My indeed. It just shows you why it happens. You shouldn't disable the AV, but you could get the folder of the ex...
by paul doe
Nov 14, 2023 0:59
Forum: General
Topic: slow to execute after compiling source code
Replies: 11
Views: 1144

Re: slow to execute after compiling source code

Indeed, real-time protection could cause issues with that kind of code. You might try disabling the AV and then run the code again to see if this solves the issue.
by paul doe
Nov 07, 2023 23:11
Forum: Projects
Topic: simple compressor LZg9
Replies: 11
Views: 2594

Re: simple compressor LZg9

No need. Just open a new thread if you want to discuss a different approach :idea:
by paul doe
Nov 07, 2023 22:47
Forum: Projects
Topic: simple compressor LZg9
Replies: 11
Views: 2594

Re: simple compressor LZg9

neil wrote: Nov 07, 2023 21:01 Here's another idea this one works. This will always compress any 8 capital letters down to 5 bytes. No patterns or redundancy are required.
Consider opening your own thread if you're gonna try other methods, so as to not pollute this one, yes?
by paul doe
Oct 03, 2023 14:47
Forum: General
Topic: the POINT(n) function returns a wrong result
Replies: 6
Views: 1622

Re: the POINT(n) function returns a wrong result

I might be missing something, but what is wrong with simply doing a cast to get the expected values? screen 2 window(-10,-30)-(-5,-10) line(-9,-28)-(-6,-24) print"Window x-coordinate of the last point=";cast( long, point(2) ) print"Window y-coordinate of the last point=";cast( lo...
by paul doe
Sep 02, 2023 19:31
Forum: General
Topic: Is &H a compile time literal?
Replies: 10
Views: 1719

Re: Is &H a compile time literal?

Seems to me it is, or it isn't. Your explanation states that it could sometimes be a Literal and sometimes not. This applies not just to &H but to all of the prefixes. Perhaps they should be called that: Prefixes or Type Prefixes. That's what he's telling you: it's a prefix for literals , not f...
by paul doe
Aug 31, 2023 11:10
Forum: Windows
Topic: ScreenRes problem
Replies: 7
Views: 2071

Re: ScreenRes problem

... Using Screenlist the output says I can have a screen of 2560 x 1440 ... But it probably doesn't say that it supports it at 320x200x8, right? You can run the code (provided in the example section of the Wiki page for ScreenList ) to see the fullscreen modes available: Dim As Long mode Dim As UIn...
by paul doe
Aug 18, 2023 16:43
Forum: Windows
Topic: Create sub to qbasic style
Replies: 6
Views: 1593

Re: Create sub to qbasic style

Tolo68 wrote: Aug 18, 2023 16:02 ...
I guess it could, because the GFXLIB library uses this syntax.
...
It uses the syntax for compatibility. Why would anybody want to use it willingly baffles me...
by paul doe
Aug 15, 2023 17:00
Forum: General
Topic: glGenFramebuffers command crash
Replies: 6
Views: 1480

Re: glGenFramebuffers command crash

Also noticed that you're missing a call to opengl_init() somewhere in your code. Do it after you've set up the context (via screenRes ), like this: '' Set up context screenRes( w, h, d, , Fb.GFX_OPENGL ) '' Load extensions opengl_init() Otherwise the aliases contain just null pointers (hence the cra...
by paul doe
Aug 15, 2023 14:23
Forum: General
Topic: glGenFramebuffers command crash
Replies: 6
Views: 1480

Re: glGenFramebuffers command crash

I had some code lying on my HD, that illustrates how you can use Fb.Image buffers with OpenGL: /' Much like the Shader type, this type is used for convenience, to create and store an OpenGL texture object. The format used is directly compatible with FB buffers. '/ type OGLtexture public: declare con...
by paul doe
Aug 15, 2023 14:01
Forum: General
Topic: glGenFramebuffers command crash
Replies: 6
Views: 1480

Re: glGenFramebuffers command crash

The context is already created on the call to screenres . Problem is here: dim as GLuint Ptr depth_fbo depth_fbo=ImageCreate(screen_width,screen_height) ' the program crash if i add this line: 'glGenFramebuffers(1,depth_fbo) That's wrong. Fb image buffers are not compatible with those of GL's (they ...