FreeBasic Framework

User projects written in or related to FreeBASIC.
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Jan 17, 2020 22:47

I redownloaded all the code, created a fresh folder for the compiler (without any fw code in it), followed the instructions to the letter, and everything works fine. I don't know why are you getting those errors. You may have the symbol already defined elsewhere. Note that you're the only one (of the people that I know they tried the code) that's experiencing these issues. The code was also tested on another computer (Linux based; I have Win10 here) without issues.
dafhi
Posts: 1329
Joined: Jun 04, 2005 9:51

Re: FreeBasic Framework

Postby dafhi » Jan 17, 2020 22:54

condsider it resolved then. maybe i'll have an a-ha moment .. i'm just running the 2 examples
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Jan 17, 2020 23:02

dafhi wrote:condsider it resolved then. maybe i'll have an a-ha moment .. i'm just running the 2 examples

Regarding what? Were you able to run all the examples correctly?
dafhi
Posts: 1329
Joined: Jun 04, 2005 9:51

Re: FreeBasic Framework

Postby dafhi » Jan 18, 2020 0:18

dafhi wrote:tried all folders. "interaction" also gives
..

graphics and interaction the only 2 problematic. i'll try on my other laptop sometime
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Jan 18, 2020 5:10

dafhi wrote:
dafhi wrote:...
graphics and interaction the only 2 problematic. i'll try on my other laptop sometime

Ok. Just in case, I renamed the symbol that gave you trouble, and revamped one of the examples.
dafhi
Posts: 1329
Joined: Jun 04, 2005 9:51

Re: FreeBasic Framework

Postby dafhi » Jan 19, 2020 1:53

"graphics" and "interaction" examples are working fine now
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Jan 19, 2020 4:11

Well, I'm glad. I wonder what could've caused the naming conflict (didn't happened here). Anyway, I just removed the symbol since it was only provisory, and that seems to have solved your issues so there =D
dafhi
Posts: 1329
Joined: Jun 04, 2005 9:51

Re: FreeBasic Framework

Postby dafhi » Jan 22, 2020 3:13

HCY. oi
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Jan 22, 2020 3:44

dafhi wrote:HCY. oi

I'm sorry, but what does this mean?
dafhi
Posts: 1329
Joined: Jun 04, 2005 9:51

Re: FreeBasic Framework

Postby dafhi » Jan 22, 2020 3:52

i love it
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Jan 22, 2020 4:09

Yeah, it's pretty nice. Since colors are ordered by perceived luminance, you can create some cool gradients/effects that are very hard to do with other color ordering models. It's also quite useful for UI tasks, such as ensuring some text remains visible regardless of its background color.

I'm working on the graphic backends ATM. Once I'm done for the day, I'll push the changes to GitHub so there will be some new examples to test. Things will start to get interesting pretty soon ;)
dafhi
Posts: 1329
Joined: Jun 04, 2005 9:51

Re: FreeBasic Framework

Postby dafhi » Jan 22, 2020 4:31

paul doe wrote:.. Since colors are ordered by perceived luminance, you can create some cool gradients/effects that are very hard to do with other color ordering models. It's also quite useful for UI tasks, such as ensuring some text remains visible regardless of its background color.
https://www.openprocessing.org/sketch/306463

paul doe wrote:I'm working on the graphic backends ATM. Once I'm done for the day, I'll push the changes to GitHub so there will be some new examples to test. Things will start to get interesting pretty soon ;)
nice. can't wait :-)
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Jan 23, 2020 0:15

Small update: fixed some crashing issues I was having with collections. Discovered when I pitted my Dictionary implementation against the one shown in this thread. Fixed now.
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Mar 06, 2020 22:52

Update: fixed bugs, added a few functions and classes (most notably MySQL and SQLite connectors). Updated some examples.
paul doe
Posts: 1139
Joined: Jul 25, 2017 17:22
Location: Argentina

Re: FreeBasic Framework

Postby paul doe » Apr 04, 2020 0:44

Update: fixed bugs and corrected some broken examples. Most notably, I added a method to insert elements into a List by pointer, and also allowed to provide an initial value for it. This broke the ability to template nested collections (ie a Dictionary of Lists), so it was removed. Inserting simple values into a List isn't as straightforward as it should be now:

Code: Select all

#include once "fbfw-collections.bi"

template( List, of( integer ) )

var _
  a => new integer, _
  b => new integer, _
  c => new integer

*a => 2
*b => 3
*c => 4

var _
  aList => List( of( integer ) )

aList.add( a ).add( b ).add( c )

for _
  i as integer => 0 _
  to aList.count - 1
 
  ? *aList.at( i )
next

sleep()

It sucks, but I'd rather have nested collection support than easy templating for builtins. Will try to implement a workaround that also supports collections themselves. Oh well.

Return to “Projects”

Who is online

Users browsing this forum: Xusinboy Bekchanov and 1 guest