Search found 9276 matches

by fxm
Nov 18, 2019 20:59
Forum: General
Topic: Ptr to an array? (Was: Possible to ReDim with only a ptr?)
Replies: 10
Views: 451

Re: Ptr to an array? (Was: Possible to ReDim with only a ptr?)

Another way to get a pointer to a dynamic array descriptor is that this descriptor is packaged into a UDT. For that, it is enough that the dynamic array is declared like a member of the UDT. Always the same example, but with a code adapted to this different structure: Type gfx_ As Long id End Type T...
by fxm
Nov 18, 2019 6:32
Forum: Documentation
Topic: Wiki improvements
Replies: 373
Views: 60012

Re: Wiki improvements

And therefore probably suppress the last paragraph "Array Descriptor" at the page " Arrays " of development documentation to avoid duplication of the array descriptor structure definition (because all this information will be reported on the future dedicated page). Jeff, Or else...
by fxm
Nov 17, 2019 22:30
Forum: Documentation
Topic: Wiki improvements
Replies: 373
Views: 60012

Re: Wiki improvements

Juergen Kuehlwein wrote:Maybe you should print the memory addresses (@array descriptor, pd->index_ptr and pd->base_ptr) in your example code in hex?

Done.
by fxm
Nov 17, 2019 14:45
Forum: Documentation
Topic: Wiki improvements
Replies: 373
Views: 60012

Re: Wiki improvements

Similarly to the page "EVENT (message data from ScreenEvent)" at " KeyPgEvent " of documentation, I think we should add a page "FBARRAY (array descriptor structure and access)" at "/wiki/KeyPgFBArray" with description and usage example, usable from fbc versio...
by fxm
Nov 17, 2019 7:52
Forum: Documentation
Topic: Wiki improvements
Replies: 373
Views: 60012

Re: Wiki improvements

Similarly to the page "EVENT (message data from ScreenEvent)" at " KeyPgEvent " of documentation, I think we should add a page "FBARRAY (array descriptor structure and access)" at "/wiki/KeyPgFBArray" with description and usage example, usable from fbc versio...
by fxm
Nov 16, 2019 20:15
Forum: General
Topic: Ptr to an array? (Was: Possible to ReDim with only a ptr?)
Replies: 10
Views: 451

Re: Ptr to an array? (Was: Possible to ReDim with only a ptr?)

For me, I consider this rather a challenge, without judging the usefulness of the method.
I only mimed what FreeBASIC probably does under the hood when processing the arrays.
Maybe mrToad needs to be able to pass an array to a procedure using a pointer only as argument.
by fxm
Nov 16, 2019 7:39
Forum: Documentation
Topic: Wiki improvements
Replies: 373
Views: 60012

Re: Wiki improvements

@admins and others, ⋅ Similarly to the page "EVENT (message data from ScreenEvent)" at " KeyPgEvent " of documentation, I think we should add a page "FBARRAY (array descriptor structure and access)" at "/wiki/KeyPgFBArray" with description and usage ...
by fxm
Nov 16, 2019 6:52
Forum: General
Topic: Ptr to an array? (Was: Possible to ReDim with only a ptr?)
Replies: 10
Views: 451

Re: Ptr to an array? (Was: Possible to ReDim with only a ptr?)

- With the current version of fbc 1.08, you can now easily access the array descriptor, and thus do what you want above. (see the last paragraph "Array Descriptor" of the page ' Arrays ' in documentation) Your code modified accordingly (for fbc 1.08): #include "fbc-int/array.bi" ...
by fxm
Nov 12, 2019 13:52
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 21, 2019)
Replies: 600
Views: 92938

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 7, 2019)

I noticed (3 times) that after certain erroneous command lines, the compilation was always aborting (even with a good command line), and that the WinFBE_Suite.rar file has to be reinstalled for that to work again (maybe the anti-virus did something?) Otherwise, your command line above works on my PC...
by fxm
Nov 11, 2019 21:41
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 21, 2019)
Replies: 600
Views: 92938

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 7, 2019)

When using option '-m' (see documentation), the proper command line must be (works from a command window): "C:\Users\fxmam\Documents\Mes Outils Personnels\WinFBE_Suite\FreeBASIC-1.07.1-gcc-5.2\fbc32.exe" -m "C:\Users\fxmam\Documents\Mes Outils Personnels\WinFBE_Suite\test" "...
by fxm
Nov 11, 2019 21:18
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 21, 2019)
Replies: 600
Views: 92938

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated November 7, 2019)

When I type the following as command line in a command window (same as previous command for version 1.9.8 which does not work, but with quotation mark around the compiler path and without option '-m' ), that finally compiles and runs: C:\Users\fxmam> "C:\Users\fxmam\Documents\Mes Outils Personn...
by fxm
Nov 11, 2019 17:01
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 116
Views: 5402

Re: FreeBASIC 1.08 Development

I obviously agree.
That's how I use it already, and I'll use it later too.
(the simplest and the fastest)
by fxm
Nov 10, 2019 22:23
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 116
Views: 5402

Re: FreeBASIC 1.08 Development

fxm wrote:My principle also works if the procedure definitions are in a separate compiled module or a library.
by fxm
Nov 10, 2019 22:17
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 116
Views: 5402

Re: FreeBASIC 1.08 Development

My principle also works if the procedure definitions are in a separate compiled module or a library.
by fxm
Nov 10, 2019 20:29
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 116
Views: 5402

Re: FreeBASIC 1.08 Development

Ugly but no macro. If the following order is respected: - Declaration of the procedure using 'Any' as data type - Calls of the procedure with any type of data - Definition of the procedure using a type of data The program compiles. #Include "fbc-int/array.bi" Using FBC Declare Sub ArrayInf...

Go to advanced search