Search found 1133 matches

by badidea
Jan 20, 2019 22:26
Forum: Libraries
Topic: SQLite 3. Any update since 1.05 release 3 years ago?
Replies: 13
Views: 419

Re: SQLite 3. Any update since 1.05 release 3 years ago?

I just installed FreeBASIC for Linux, and I was trying to play around with sqlite, but when I compile my test program, it comes back with ld: cannot find -lsqlite3. Did the Linux version forget to include "sqlite3.bi"? I checked some of the directories for sqlit3.bi, but I could not find ...
by badidea
Jan 20, 2019 12:35
Forum: General
Topic: Redim NEW constructed pointers calls the DELETE?
Replies: 9
Views: 131

Re: Redim NEW constructed pointers calls the DELETE?

Sorry, I indeed forgot delete
by badidea
Jan 20, 2019 11:09
Forum: General
Topic: Redim NEW constructed pointers calls the DELETE?
Replies: 9
Views: 131

Re: Redim NEW constructed pointers calls the DELETE?

Something like this? type udt dim as integer a declare constructor declare destructor end type constructor udt print "constructor udt" end constructor destructor udt print "destructor udt" end destructor '---------------------------------------------------- type array_udt dim as ...
by badidea
Jan 20, 2019 10:18
Forum: General
Topic: Redim NEW constructed pointers calls the DELETE?
Replies: 9
Views: 131

Re: Redim NEW constructed pointers calls the DELETE?

I think that both are not good: type udt dim as integer a declare constructor declare destructor end type constructor udt print "constructing" end constructor destructor udt print "destructing" end destructor ? 1 redim as udt ptr array(1) ? 2 array(1) =@(udt()) ? 3 erase array ' ...
by badidea
Jan 18, 2019 20:25
Forum: General
Topic: 2d quasi cristals
Replies: 3
Views: 114

Re: 2d quasi cristals

Sorry, but your code is impossible to follow (Or at least for me). I have no idea where to start, a big puzzle. Some examples: 1) 'tile5' has as comment 'draw a random tile', but in reality is does drawing + all kinds of mysterious stuff on global variables. 2) you sort points from '1 to ptel' withi...
by badidea
Jan 16, 2019 20:13
Forum: Windows
Topic: Multikey and Win10 Pro 64bit
Replies: 7
Views: 316

Re: Multikey and Win10 Pro 64bit

Then I ran this code: #include "fbgfx.bi" screen 8 do if multikey(fb.sc_left) then ? "x"; sleep 10 loop until inkey()=chr(27) and yeh on the 25th line it will scroll up as if you've used 'view print 1 to 24' weird! Here on linux, screen 2 nd 8 behave weird as well. I get half ch...
by badidea
Jan 15, 2019 22:02
Forum: Tips and Tricks
Topic: Water Effect v0.5
Replies: 9
Views: 314

Re: Water Effect v0.4

UEZ wrote:I'm not using Linux and thus not tested!

Looks cool and works fine under linux (#Include "windows.bi" and FreeConsole deleted) Not any more now
I did not notice a speed difference 32/64 bit, but I also compiled with -exx, so probably slower anyway.
by badidea
Jan 14, 2019 0:01
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize
Replies: 147
Views: 8142

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Oct 2018 – Feb 2019), 1000 $ 1st prize

Current look of my game: https://nr100.home.xs4all.nl/badidea/fb_vs_tetris.png I am finally making some progress, but still so many thing to do: * More work on the engine * Images / animations (e.g.: The orange circle is the player) * Adding Sound * Scoring system * High score list * Settings screen...
by badidea
Jan 13, 2019 23:43
Forum: Beginners
Topic: Shaped Window with mouse area problem
Replies: 3
Views: 99

Re: Shaped Window with mouse area problem

May I suggest the name: YaGUI = Yet another Graphical User Interface.
Making a good GUI with all the features is a lot of work.

I cannot move the window at all here (on linux).
by badidea
Jan 13, 2019 20:32
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 376

Re: Where to put keyboard code

Gablea wrote:... html basic attenuation ...

What is that? DDG and Google weren't much help here.
by badidea
Jan 13, 2019 18:30
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 376

Re: Where to put keyboard code

Unpacks ok here.
by badidea
Jan 13, 2019 13:35
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 376

Re: Where to put keyboard code

dodicat wrote:similar but using F2 key for username

The combination of multikey & inkey does work too well: Press some keys in main loop and then F2.
by badidea
Jan 13, 2019 10:39
Forum: Beginners
Topic: LOAD PNG TO IMAGE
Replies: 15
Views: 281

Re: LOAD PNG TO IMAGE

I assume that there are multiple, incompatible versions of libpng In .../examples/files/libpng there is png.bas This uses png.bi [ #include once "png.bi" ] If I run this it get: * ... incompatible linbpng version ... (in the grahics window) * libpng warning: Application was compiled with p...
by badidea
Jan 12, 2019 21:36
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 376

Re: Where to put keyboard code

Now I just have to work out how to use your code badidea :D Similar but different: #include "fbgfx.bi" #include "vbcompat.bi" const as integer QUIT_SCREEN = 0 const as integer BACKGROUND_SCREEN = 1 const as integer SIGNED_ON_SCREEN = 2 const as integer SCRN_W = 800, SCRN_H = 600...
by badidea
Jan 12, 2019 21:09
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 376

Re: Where to put keyboard code

Important is, for updating the time every second always, that the scanner is 'non-blocking'. This seems to be the case: 1. Poll: Is there data waiting [ LOC(BarcodeReader) > 0 ] 2. Read the data (quickly). 3. Exit (continue doing other stuff like updating the time) If all this happens within a secon...

Go to advanced search