Search found 3233 matches

by MrSwiss
Oct 23, 2019 23:40
Forum: Linux
Topic: No Version Information
Replies: 1
Views: 22

Re: No Version Information

Hi gellis_aeneas, The missing library libtinfo.so.5 is one of the required lib's for FBC to run. See: Installing FreeBASIC , scroll down to LINUX and search for 4. where all requirements are listed (all the to be installed libraries). This is a general installation issue and, not specific to version...
by MrSwiss
Oct 23, 2019 15:01
Forum: General
Topic: Quick question on Enum's data type
Replies: 20
Views: 415

Re: Quick question on Enum's data type

I agree with the pointer logic and the conclusions -- so far, but -- it seems, that you've generously forgotten the Data, the pointers point to: let's assume (for examples sake) a UDT Ptr, to where the really intresting stuff, the Data itself, is held and that is, what needs to be written to file/re...
by MrSwiss
Oct 22, 2019 19:38
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 4
Views: 195

Re: How to add new features? (syntax, user API)

I don't see the reason for this discussion, because coderJeff has made it pretty clear,
that he wants it, as in your option 1).

Btw: I'll support him on that, all the way ...
by MrSwiss
Oct 22, 2019 19:16
Forum: General
Topic: Quick question on Enum's data type
Replies: 20
Views: 415

Re: Quick question on Enum's data type

dodicat wrote:There is a problem with pointers fields though, but that is another story.

Since, SizeOf(Integer) = SizeOf(Any Ptr), we're dealing with the same problem here.
That is: without conversion (implicit or explicit) to Long/Integer<32>.
by MrSwiss
Oct 22, 2019 18:48
Forum: General
Topic: Quick question on Enum's data type
Replies: 20
Views: 415

Re: Quick question on Enum's data type

Surely an enum is only a shortcut to integer<32> constants, giving then names. No, it is a shortcut to Integer = 64 bit in FBC 64 (your assumption is only valid for FBC 32). As also confirmed by D.J.Peters (Joshy) and fxm. Saving to file and retrieving from file requires only to remember a 32 bit v...
by MrSwiss
Oct 22, 2019 14:21
Forum: General
Topic: Quick question on Enum's data type
Replies: 20
Views: 415

Re: Quick question on Enum's data type

No problem, nobody is perfect ... (not even robots, when not properly maintained).
by MrSwiss
Oct 22, 2019 14:06
Forum: General
Topic: Quick question on Enum's data type
Replies: 20
Views: 415

Re: Quick question on Enum's data type

In order to explain things, relying on 'implicit conversions ' is pointless, because: 'implicit' means also 'not visible' . That is the main reason for writing it: 'explicit' and therefore clearly 'visible' . (by reading the code, it's absolutely obvious, what exactly happens ...) fxm, what you call...
by MrSwiss
Oct 22, 2019 12:38
Forum: General
Topic: Quick question on Enum's data type
Replies: 20
Views: 415

Re: Quick question on Enum's data type

Surely if .shape is a long, it takes on the values of 1, 2 or 3, and that is it, writing to a file or not. Yes, and No ... meaning: Long in the Type, all okay -- but -- the original question was, however: Enum in the Type (Integer), causing incomatibility, when written to file and thereafter opened...
by MrSwiss
Oct 21, 2019 22:43
Forum: General
Topic: Quick question on Enum's data type
Replies: 20
Views: 415

Re: Quick question on Enum's data type

The CLng() would be used in a constructor of the Type: Enum Shapes Circle = 1 ' IMO not a good idea, to use a FB KeyWord square triangle End Enum Type Block As Long Shape Declare Constructor(ByVal rhs As Shapes) End Type Constructor Block(ByVal rhs As Shapes) This.Shape = CLng(rhs) End Const...
by MrSwiss
Oct 21, 2019 21:34
Forum: General
Topic: Quick question on Enum's data type
Replies: 20
Views: 415

Re: Quick question on Enum's data type

A Enum's Data-Type is always Integer (and therefore, of Ptr size).
4 bytes in FBC 32, 8 bytes in FBC 64.

It should therefore not be used inside a Type (UDT), for read/write to/from file.
You could cast it to Long, inside the Type. CLng(...)
by MrSwiss
Oct 21, 2019 13:56
Forum: General
Topic: (Solved) Howto print & draw from own library's Subs/Funcs ?
Replies: 14
Views: 497

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

ppf wrote:Topic can be marked as Solved.

Only you can do that, by editing the first posts title with: (solved).
In case of a longer title, as here, it might be better to prepend (instead of appending).
by MrSwiss
Oct 18, 2019 22:12
Forum: General
Topic: Squares
Replies: 7043
Views: 428215

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: 2219

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: 15556

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: 15556

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...

Go to advanced search