Search found 3222 matches

by MrSwiss
Oct 18, 2019 22:12
Forum: General
Topic: Squares
Replies: 7013
Views: 423526

Re: Squares

@admin, clould you please stop the "compression-troll" from further posting? It is really nothing more than annoying, to read about "how to go in circles" in a never ending story. He by now seems to think, he can get away with his "daily, pointless blog-posts". (It's no...
by MrSwiss
Oct 16, 2019 20:35
Forum: Windows
Topic: Need new gfxlib driver for Windows 7, 8, 10
Replies: 16
Views: 2107

Re: Need new gfxlib driver for Windows 7, 8, 10

I may follow-up with actual bug reports; even if just for myself, it's nice to have a ticket to track. I already have one open on SourceForge: #898 --- DirectX - Driver not working in FBC x64 (WIN) @macko17, that's excellent! fb gfxlib's DirectX driver now initializes for me on Win7 64-bit. Nice! C...
by MrSwiss
Oct 16, 2019 17:22
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 58
Views: 13868

Re: DIY hardware interface for simple data collection and robot control?

It is also from the FBC 32 bit, only days ... Therefore, I've tested it (q & d -- hack) if it still works, in principle. Just as a demo, how to load the DLL and access one single Function within. (I'd never use it that way. I'd split it into a static Lib, which the .exe loads.) LabJack_U12-first...
by MrSwiss
Oct 16, 2019 14:15
Forum: Hardware Interfaces / Communication
Topic: DIY hardware interface for simple data collection and robot control?
Replies: 58
Views: 13868

Re: DIY hardware interface for simple data collection and robot control?

Hi Ms. Swiss, <-- MrSwiss please (I'm not Miss Switzerland ;-) ) Re: the below, can you share any FB code you've written to use your LabJack U12? Sorry, but no (commercial), it's also far too complex for simple use. For simple Lab-Applications I'd use a "graphical coding environment" whic...
by MrSwiss
Oct 14, 2019 22:36
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 52
Views: 8231

Re: Audio library for FreeBasic - Features

As with the graphics library, ... There you already have it: it isn't like the graphics library . (which is in FB for a long time) AFAIK: to trigger gfx-lib loading, there are only two KeyWords: Screen/ScreenRes Instead of defining umpteen new KeyWords (to load a new lib/feature) a single #Include ...
by MrSwiss
Oct 14, 2019 21:48
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 52
Views: 8231

Re: Audio library for FreeBasic - Features

... it's very unlikely that your program will contain keywords named SOUND, PLAY, SineWave and so on, ... That is the point where you are wrong, I've at least one program that contains a procedure named SineWave() , but for drawing it, nothing to do with sound. Just assuming things is likel...
by MrSwiss
Oct 13, 2019 21:22
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 52
Views: 8231

Re: Audio library for FreeBasic - Features

... it would not be included if no command from it is used ... This is nonsense because it would mean, that I have to learn those keywords, I don't ever intend to use anyway (just to avoid them). Those wanting to use it, should have the work (not the other way around). I wouldn't want those keyword...
by MrSwiss
Oct 13, 2019 20:28
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 52
Views: 8231

Re: Audio library for FreeBasic - Features

I wonder if the include should be required, or optional ... It should definitely be mandatory , because there are people (like me) who don't want any of it as well, as the associated overhead it creates. This is so: thanks to "Super Mario Brothers" whose sound nearly drove me "around...
by MrSwiss
Oct 12, 2019 15:09
Forum: Tips and Tricks
Topic: UInteger to max. value (32/64)
Replies: 4
Views: 339

Re: UInteger to max. value (32/64)

Non constant way. Whether const or not, there isn't anything "new", as to the method of assignment. Secondly, using two steps is not at all required/wanted. Dim As UInteger UImax = Not 0 ' preferred method ' or "hackish" ... Dim As UInteger UImax = -1 ' should be avoided IMO
by MrSwiss
Oct 12, 2019 13:17
Forum: General
Topic: Howto print & draw from own library's Subs/Funcs ?
Replies: 11
Views: 370

Re: Howto print & draw from own library's Subs/Funcs ?

ppf, you're not completely done yet. (That is, if you really want to go "all the way".) The situation right now: you'll still have to write the declarations in every new program. The same applies to the code that actually interfaces with the library. (at the top of the code, this might get...
by MrSwiss
Oct 10, 2019 14:00
Forum: General
Topic: Useful defines
Replies: 24
Views: 1967

Re: Useful defines

dodicat wrote:But WHY does the 32 bit compiler fail completely here?
No idea currently, FBC64 is OK ...
Got to run now, picking up some stuff I've ordered ...
Just remember: black isn't 0 its &hFF000000, or RGBA(0,0,0,255)
by MrSwiss
Oct 10, 2019 13:19
Forum: General
Topic: andalso on preprocessor
Replies: 2
Views: 135

Re: andalso on preprocessor

Seems to me, that C's preprocessor is more lenient than FB's, on type checking . BTW: neither And nor AndAlso work, but below does: #if defined(MyInt) #If MyInt > 10 #print "woooo" #EndIf ' MyInt > 10 #EndIf ' defined(MyInt) By contrast comparing two "of the same kind" works flaw...
by MrSwiss
Oct 10, 2019 12:46
Forum: General
Topic: Useful defines
Replies: 24
Views: 1967

Re: Useful defines

Just to show the difference, between 24 bit RGB vs. 32 bit RGBA: #Define rnd_RGBA ( CULng(Rnd() * &hFFFFFFFFul) ) #Define rnd_RGB ( CULng(Rnd() * &h00FFFFFFul + &hFF000000ul) ) In rnd_RGB Alpha is always set to: 255/&hFF, as in the original RGB macro. This assures visibility, even if...
by MrSwiss
Oct 09, 2019 23:40
Forum: General
Topic: Useful defines
Replies: 24
Views: 1967

Re: Useful defines

dodicat wrote:Something looks pictorially wrong with Mr Swiss's method.

Yes, it does. Your comparison to RGB is the problem, because I'm doing RGBA ...
#define rnd_clr ( CULng(Rnd() * &hFFFFFFFFul) )
The advantage is: 1 x Rnd() instead of 4 x Rnd() [when using RGBA macro].
by MrSwiss
Oct 08, 2019 21:53
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 791
Views: 133214

Re: FBGUI library for Windows 2

jj2007 wrote:I can see the listings on the left (Content, info about the developers, 2D_Draw etc) but no luck on the right side, it remains white.

You'll have to UnBlock the *.chm file, first ...

Go to advanced search