Search found 8158 matches

by fxm
Aug 21, 2018 9:05
Forum: Tips and Tricks
Topic: Cheat prevetion for Ubytes
Replies: 21
Views: 622

Re: Cheat prevetion for Ubytes

For me, the code is quite simple and the title of the thread "Cheat prevention for Ubytes" is enough for me.

But too many comments for a code not commented! :-(
There may be more useful things to do on the forum. :-)
by fxm
Aug 21, 2018 5:34
Forum: Beginners
Topic: More on closing windows
Replies: 6
Views: 169

Re: More on closing windows

Documentation update:
KeyPgScreengraphics → fxm [Added note on using 'Screen 0, , , SCREEN_EXIT' (with SCREEN_EXIT=&h80000000) to close any graphics window while preserving the console window if it exists]
(this capacity has always existed since at least the FreeBASIC 0.12 Beta version)
by fxm
Aug 20, 2018 16:33
Forum: Beginners
Topic: More on closing windows
Replies: 6
Views: 169

Re: More on closing windows

Yes. So the console window is preserved. @admin, Flag "[GFX_]SCREEN_EXIT" (&h80000000) to be added in documentation and in fbgfx.bi? Flag only significant when used with Screen 0 (closing any graphics window and preserving the console window content): SCREEN 0, , , &h80000000 See F...
by fxm
Aug 20, 2018 15:29
Forum: Beginners
Topic: More on closing windows
Replies: 6
Views: 169

Re: More on closing windows

GFX_NULL removes the current graphics window, but also creates a new graphic buffer without window.
So, if we are working with a console window in the background, all input / output instructions will be disabled on it, and furthermore, an input instruction will induce a blocked program.
by fxm
Aug 20, 2018 14:21
Forum: Tips and Tricks
Topic: Cheat prevetion for Ubytes
Replies: 21
Views: 622

Re: Cheat prevetion for Ubytes

Just a small remark (for the nth time) on the declaration of the arrays: Dim name ( [lbound To] ubound [, ...] ) As DataType So when declaring an array with the shortest syntax ( 'Dim name ( ubound [, ...] ) As DataType' ), the single value entered for each dimension corresponds to the ubound of the...
by fxm
Aug 20, 2018 12:09
Forum: Beginners
Topic: More on closing windows
Replies: 6
Views: 169

Re: More on closing windows

ScreenControl GET_WINDOW_HANDLE, Graphic_Screen DestroyWindow(Graphic_Screen) Screen 0 It was not worth opening a new thread (it was enough to continue on the previous one). How to close a window : - Close a GUI API window. - Close a FBGFX window. - Close a console window.
by fxm
Aug 20, 2018 9:08
Forum: Tips and Tricks
Topic: Saving space when drawing rectangles
Replies: 15
Views: 284

Re: Saving space when drawing rectangles

dodicat wrote:Or I find easier to remember: ...

Or '#if sizeof(any ptr)=8' for an ultra purist!
(it's only a joke for someone) :-)
by fxm
Aug 20, 2018 7:59
Forum: Tips and Tricks
Topic: Saving space when drawing rectangles
Replies: 15
Views: 284

Re: Saving space when drawing rectangles

Example:

Code: Select all

#ifdef __FB_64BIT__
  Print "64";
#else
  Print "32";
#endif
Print "-bit code"
Print "Integer size: " & Sizeof(Integer) & " Bytes"

Sleep
by fxm
Aug 17, 2018 12:39
Forum: Community Discussion
Topic: programming for fun
Replies: 43
Views: 1512

Re: programming for fun

For me, the classical French scientific training, helped by my parents. After the scientific baccalaureate (mathematics): - Preparatory classes : two-year undergraduate intensive course in mathematics and physics. - National competitive examination for admission to the French "Grandes Ecoles&qu...
by fxm
Aug 17, 2018 9:36
Forum: Beginners
Topic: How to close a window
Replies: 6
Views: 187

Re: How to close a window

Have you read the question carefully?
How to destroy this window and keep program running ?
by fxm
Aug 17, 2018 9:09
Forum: Windows
Topic: After Ctl+Alt+Delete is pressed, continous Alt key is sent
Replies: 9
Views: 248

Re: After Ctl+Alt+Delete is pressed, continous Alt key is sent

BTW:
For Windows, why not set GDI by default for fbc-32bit because it's the only one available for fbc-64bit?
by fxm
Aug 17, 2018 9:01
Forum: Beginners
Topic: How to close a window
Replies: 6
Views: 187

Re: How to close a window

DestroyWindow(Window_Main) ?
by fxm
Aug 16, 2018 21:20
Forum: General
Topic: Delete vs. Delete[]
Replies: 20
Views: 2175

Re: Delete vs. Delete[]

3) Yes, it confirms what I saw. Many calls to the constructor before the crash: Type UDT Dim As Byte b Declare Constructor () End Type Constructor UDT () Print "UDT.Constructor()", @This End Constructor Dim As UDT Ptr p = New UDT[0] UDT.Constructor() 10365536 UDT.Constructor() 10365537 UDT...
by fxm
Aug 16, 2018 15:50
Forum: General
Topic: Delete vs. Delete[]
Replies: 20
Views: 2175

Re: Delete vs. Delete[]

If we were independent of any other language or operating system, I would say (IMHO) that for any of these expressions: result = New datatype[ count ] result = [C]Allocate( count ) result = Reallocate( pointer, count ) If ( count <= 0 ) Orelse ( memory allocation is failed ) Then result = 0 Else res...
by fxm
Aug 16, 2018 15:22
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 7015

Re: Wiki improvements

I think each one has his own understanding. Mine is this: - "Referencing a variable" means accessing the memory address of the variable (this address is often used to initialize a pointer value). - "Dereferencing a variable" means accessing the variable stored at a memory address...

Go to advanced search