Search found 1230 matches

by badidea
Apr 22, 2019 11:04
Forum: Beginners
Topic: Unexpected behaviour of type arrays
Replies: 6
Views: 64

Re: Unexpected behaviour of type arrays

I get a compile error: test.bas(13) error 180: Invalid assignment/conversion in 'manythings(0) = somethings(0)' test.bas(15) error 18: Element not defined, x in 'PRINT manythings(0).x' This works, but I am not sure that this is what you want: T...
by badidea
Apr 20, 2019 16:48
Forum: Community Discussion
Topic: Are you happy with your office's lightings?
Replies: 2
Views: 266

Re: Are you happy with your office's lightning?

I luckily spend only about ~25% of working time in my own office doing computer work. ~25% computer work at other locations and the rest (~50%) work without computer need. One of the annoying things in my office is the sunscreen that go up automatically when there is to much wind outside. Then it is...
by badidea
Apr 18, 2019 21:29
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 206
Views: 28971

Re: FLTK C for FreeBASIC Jan 09, 2017

So you don't "merge" the (essential) files into the FreeBasic directory structure ? I don't. Could you give a list of those "essentials" ? For Windows & Linux: fltk-c.bi libfltk-c-1.3.3-32.dll.a libfltk-c-1.3.3-64.dll.a libXft.so.2.3.1 fltk-glut.bi libfltk-c-1.3.3-32.so libf...
by badidea
Apr 18, 2019 21:08
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 206
Views: 28971

Re: FLTK C for FreeBASIC Jan 09, 2017

I have a "projects" folder for all my freebasic projects, inside it are a.o.: * "fltk-c-1.3.3" with all the examples, media and stuff. For quick FLTK tests, I use this folder. * Projects that use FLTK. Here I just put a stripped version of FLTK (only essentials, ~10 files) in a s...
by badidea
Apr 17, 2019 21:28
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 73
Views: 3089

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

Just tried it. Not sure how to play it? Can you rotate the blocks? I tried the suggested keys but couldn't figure out what to do exactly. Maybe a demo game or more instructions on how to play the game? Tetris was one of the few games I was hooked on, at least for a few weeks before I became bored w...
by badidea
Apr 17, 2019 19:58
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 73
Views: 3089

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

Can I submit a second game if we postpone further? I have another idea :-) This weekend I might add or change some things to my previously submitted game. But with the current amount of competition, it is not high on my priority list :-p Anyway, if my game does result in some prize-money (chances lo...
by badidea
Apr 17, 2019 18:58
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) :-)
Replies: 41
Views: 2591

Re: Gas64 (no more use of gcc, only gas) :-)

- linux version but I have not yet decided between physical/virtual machine or other ways, for testings. Any idea ? I would do both. If you currently don't have a linux install, go with a virtual setup first. Easy to switch between windows and linux that way. But for performance testing you might w...
by badidea
Apr 17, 2019 18:43
Forum: General
Topic: Electronic circuit simulation
Replies: 4
Views: 185

Re: Electronic circuit simulation

fxm wrote:
badidea wrote:The result seems plausible. Anyone who wants to check the calculation steps?
It seems to be good.

Thanks, I checked the result with LTspice. Looked the same.
I am going to add more stuff (that I don't know how to do in LTspice).
by badidea
Apr 16, 2019 22:28
Forum: General
Topic: Electronic circuit simulation
Replies: 4
Views: 185

Electronic circuit simulation

Hello all (electronics enthusiasts), I am trying to simulate a relative simple circuit (see drawing in code). The result seems plausible. Anyone who wants to check the calculation steps? ' Circuit: ' ' +---(L1)---+---(L2)---+ ' | | | ' | | | ' (Us) (C1) (R1) ' | | | ' | | | ' +----------+----------+...
by badidea
Apr 16, 2019 18:04
Forum: Documentation
Topic: Small Mistake in Documentation > Programmer's Guide > FreeBasic Primer #1
Replies: 3
Views: 237

Re: Small Mistake in Documentation > Programmer's Guide > FreeBasic Primer #1

basicjohnny wrote:No problem!

In case you want to apply changes to the wiki yourself, see: Wiki signups
by badidea
Apr 16, 2019 18:01
Forum: Documentation
Topic: Wiki improvements
Replies: 268
Views: 19125

Re: Wiki improvements

Why I never use the wiki help: ..... , I always use the .chm help file. Me too. In general, I go on wiki only to make an update! (Otherwise, I'm using the latest '.chm' version downloaded from http://users.freebasic-portal.de/stw/builds/) Me neither (chm as well) , but the wiki is the source for th...
by badidea
Apr 15, 2019 22:12
Forum: Documentation
Topic: Wiki improvements
Replies: 268
Views: 19125

Re: Wiki improvements

I added an example to Bsave. I hope it is not too long (and free of errors).
Should I put the general description inside the code block?

I also noticed that the 'tag' {{fbdoc item="ex"}} is used twice on KeyPgPutfileio. Better to remove the second? Is it important?
by badidea
Apr 11, 2019 23:32
Forum: General
Topic: Load image from MySQL
Replies: 8
Views: 250

Re: Load image from MySQL

Here is my 'quick hack' 'hover over' button code (windows/linux/dos?): #include once "file.bi" type bitmap_header field = 1 bfType as ushort bfsize as ulong bfReserved1 as ushort bfReserved2 as ushort bfOffBits as ulong biSize as ulong biWidth as ulong biHeight as ulong biPlanes as ushort ...
by badidea
Apr 11, 2019 22:43
Forum: General
Topic: Load image from MySQL
Replies: 8
Views: 250

Re: Load image from MySQL

I misread, you use a custom button I see. That should not be too hard... I'll try something...
by badidea
Apr 11, 2019 22:33
Forum: General
Topic: Load image from MySQL
Replies: 8
Views: 250

Re: Load image from MySQL

the image that is stored in the database is a jpeg image that is just converted to BASE64 That makes it more complex I think, as FreeBASIC does not support jpeg natively, but requires an external library. I never try jpeg with FreeBASIC myself. Say i can get this to work how would I bind the image ...

Go to advanced search