Search found 219 matches

by RockTheSchock
Aug 15, 2016 23:04
Forum: General
Topic: Howto initialise string array
Replies: 3
Views: 649

Howto initialise string array

I would like to Initialise an array but i get: FreeBasic/src/compiler/enumstrings.bi(46) error 86: Var-len strings cannot be initialized in '"AST_CLASSES" }' Dim Shared As String AST_NODECLASS_STR(0 TO ...) = {_ "AST_NODECLASS_NOP",_ "AST_NODECLASS_LOAD",_ "AST_NOD...
by RockTheSchock
Aug 12, 2016 7:12
Forum: Beginners
Topic: Is there an IDE which supports UNICODE ?
Replies: 10
Views: 813

Re: Is there an IDE which supports UNICODE ?

Geany works. But you need to use extra libraries like cairo for output. Print and "draw string" dont support unicode.
by RockTheSchock
Aug 10, 2016 20:32
Forum: General
Topic: Can not get a double buffering working well with thread (solved)
Replies: 43
Views: 1817

Re: Can not get a double buffering working well with thread (solved)

I wonder, why you would need multithreaded draw routines at all? Normally even big projects use one rendering thread. In Unreal Engine 4 (UE4), the entire renderer operates in its own thread that is a frame or two behind the game thread. Very calculation intensive tasks with much local - almost no s...
by RockTheSchock
Aug 10, 2016 16:29
Forum: General
Topic: Can not get a double buffering working well with thread (solved)
Replies: 43
Views: 1817

Re: Can not get a double buffering working well with thread (solved)

I think the problem is that if you have 2 threads, one that erases complete screen and another thread with a sprite moving screenlock / screenunlock does flicker. But what would work are several drawing threads with non intersecting animations, with maybe occasional cls.
by RockTheSchock
Aug 09, 2016 22:31
Forum: General
Topic: howto workaround interfaces?
Replies: 3
Views: 413

Re: howto workaround interfaces?

i am learning more and more about the vtable design. FBC repository and wikipedia is my friend: https://en.wikipedia.org/wiki/Virtual_method_table . And there was a nice diagram by fxm. Hope i understood it correctly. Some thought how to implement interfaces with only abstract methods: - we would ne...
by RockTheSchock
Aug 09, 2016 18:32
Forum: General
Topic: howto workaround interfaces?
Replies: 3
Views: 413

howto workaround interfaces?

How would you implement interfaces when you would write sort of a java parser -> freebasic generator. I would like to write something to automatically translate awt/swing classes and interfaces. I thought to generate fb headers from java source code for public methods and fields and later reimplemen...
by RockTheSchock
Aug 09, 2016 0:53
Forum: General
Topic: UDTs inflating rate (solved)
Replies: 13
Views: 968

Re: UDTs inflating rate (solved)

Hi,if we compare two codes performing the same task, one coded in the procedural way, and the other with embedding stuff in UDT, it seems obvious that there is some more code lines to produce for a UDT. Well, your example is very simple. Especially when using virtual member functions where the auto...
by RockTheSchock
Jul 31, 2016 11:22
Forum: Community Discussion
Topic: I wish a big bundle
Replies: 37
Views: 5099

I wish a big bundle

I know it's a lot of work making a big bundle, with all libraries for various platforms. But lets see. I tried to get a static library of sqlite3 yesterday. It took me one hour to get a working dll.a out of the .def file from the website. It took me several hours to create the static lib. I am not a...
by RockTheSchock
Jul 28, 2016 6:32
Forum: General
Topic: Flat File Database Example
Replies: 10
Views: 1288

Re: Flat File Database Example

If I remember correctly in QB PDS ISAM(Indexed Sequential Access Method) was introduced for RANDOM files, so that you could actually use theese files like a real database. The index file speeds up the search (reading) at the cost of complexity (lower write speed). You could simulate something like t...
by RockTheSchock
Jun 22, 2016 16:02
Forum: Community Discussion
Topic: new keyword suggestion: #package
Replies: 2
Views: 570

new keyword suggestion: #package

I would like to see some sort of simpler package/namespace management. A "#package ..." statement could automatically insert End Namespace before "#include ..." and "Namespace ..." after includes. What do you think? example code package tld.mydomain.mypackage #Include O...
by RockTheSchock
May 26, 2016 6:21
Forum: Game Dev
Topic: Thoughts on writing games with FreeBasic
Replies: 38
Views: 4683

Re: Thoughts on writing games with FreeBasic

]LOL! what I mean is that it almost becomes as easy, or easier than making a 2D game and they all seem to opt for 3D thinking it is 'better'... I think it depends upon the game type and what kind of experience you are trying to develop for the player, for instance, RTS games don't generally benefit...
by RockTheSchock
Feb 19, 2016 19:57
Forum: General
Topic: The BreakPoint on first line cannot be hit if Dim variable in .bi file
Replies: 8
Views: 747

Re: The BreakPoint on first line cannot be hit if Dim variable in .bi file

Maybe fbc should show warning/information if executable code is put into .bi file. Just as a hint.
by RockTheSchock
Dec 17, 2015 12:52
Forum: General
Topic: Best practice on code version numbering?
Replies: 9
Views: 906

Re: Best practice on code version numbering?

Thanks, sounds very good. I have only a fear, my system has reached its limit in term of resident programs. I'v read carrefully the wikipedia article about GIT but nothing is said about the room it occupies on a system. Have you some info about this? Is it a resident program, does it require extra ...
by RockTheSchock
Dec 16, 2015 10:54
Forum: General
Topic: Best practice on code version numbering?
Replies: 9
Views: 906

Re: Best practice on code version numbering?

I'm trying to rationalize my code files names (on disk) appending a version number to them. I wouldn't append numbers to source code files! Use a versioning system like git https://en.wikipedia.org/wiki/Git_%28software%29 With git you can document all changes transparently. You can set branches. Yo...
by RockTheSchock
Dec 10, 2015 7:03
Forum: DOS
Topic: Issues in real DOS on a 486
Replies: 17
Views: 5287

Re: Issues in real DOS on a 486

Maybe you should develop on a modern pc and cross-compile for dos and transfer the exe files per floppy disk. You can buy an USB floppy disk drive for about 15 $. As alternative you could use dosbox with fbc dos version mounting a folder where the source files resides. So you can use an ide of your ...

Go to advanced search