Search found 3181 matches

by MrSwiss
Jul 11, 2019 17:14
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4598

Re: use freebasic dll with msaccess

You must use Integer in MS Access.
No, Long seems also defined (as in QB).
Maybe in Access but, never in FB-dll-code (for Access).
by MrSwiss
Jul 11, 2019 16:19
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4598

Re: use freebasic dll with msaccess

msaccess understands "integer". is 2 bytes long. we have another call "long" is bigger This is a mayor difference, therefore, don't ever use "Integer" for this. 2 bytes (in FB = Short) 4 bytes (in FB = Long) but, "Integer" is 4 (FBC 32) or 8 (FBC 64) DLL code...
by MrSwiss
Jul 11, 2019 15:47
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4598

Re: use freebasic dll with msaccess

mr swiss, i don't see a way to simplify the problem further. There is: before trying with all the Access specifics, try it from a FB program stub. 1) load DLL (with #Inclib "name" ) without ".dll" (observe case!) 2) Function declaration 3) accessing the contained Function Only i...
by MrSwiss
Jul 11, 2019 14:53
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4598

Re: use freebasic dll with msaccess

Some observations about a useful testing sequence: 1) Test 1: function which only has numeric data-types, as simplest test. 2) Test 2: [only if 1) is successful] try with String (a additional hurdle) Since Windows is written in C/C++ it does NOT understand "String" (like FB's RTlib.), ther...
by MrSwiss
Jul 11, 2019 0:42
Forum: General
Topic: NUL device in DOS and Windows
Replies: 6
Views: 1051

Re: NUL device in DOS and Windows

fzabkar wrote:It would appear that the NUL device is treated differently by the two platforms.
As described clearly in the Article that you've linked!

Btw. I've made every possible attempt, to forget all those "old" DOS workarounds!
(DOS is dead and gone ... my point of view)
by MrSwiss
Jul 11, 2019 0:25
Forum: Projects
Topic: Include Digger
Replies: 48
Views: 8787

Re: Include Digger

bcohio2001 wrote:So I assumed that Linux has a way to create them.
Yes there are, but you'd have to use a GFX lib. and hand-create them, yourself
(for multi platform), or use xWin (Linux/Unix equivalent of WIN-API).

The alternative is: OpenGL (which exists in both OS's).
by MrSwiss
Jul 10, 2019 23:32
Forum: General
Topic: NUL device in DOS and Windows
Replies: 6
Views: 1051

Re: NUL device in DOS and Windows

Try this: If FileExists( blockdir & "\." ) Then
instead of: If FileExists( blockdir & "\NUL" ) Then
Using dev/nul in a file-system search, seems like a "non-fit" somehow.
by MrSwiss
Jul 10, 2019 15:45
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4598

Re: use freebasic dll with msaccess

You cannot put "private" into a declaration, its only allowed in the "implementation". (within the .DLL in this particular case) Try: Declare Function AddNumbers Lib "mydll.dll" (ByVal x As Integer, ByVal y As Integer) As Integer I'm very "rusty" in Ac...
by MrSwiss
Jul 09, 2019 22:09
Forum: Projects
Topic: Include Digger
Replies: 48
Views: 8787

Re: Include Digger

bcohio2001 wrote:As for running on Linux? It uses just general dlg commands, so I don't see why not.
DLG structs are part of WIN-API, which means automatically "Windows only".
by MrSwiss
Jul 09, 2019 15:11
Forum: Projects
Topic: Include Digger
Replies: 48
Views: 8787

Re: Include Digger

There is nothing new on GitHub ... still the version of: Sept. 30th, 2018
(no changes since then, please check)
by MrSwiss
Jul 09, 2019 14:22
Forum: Linux
Topic: ARM64 Deb?
Replies: 6
Views: 1589

Re: ARM64 Deb?

But If/When the compiled program tries to create a window, it segfaults. If you want to check for "run-time" errors, you'll have to compile with (at least) -exx compiler switch (on CLI calling fbc). I'm usually using: -exx -w pedantic (for a debug build). Once the code is "fixed"...
by MrSwiss
Jul 08, 2019 2:08
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46470

Re: FLTK-C-1.3.3 for FreeBASIC

Some people seem to believe, people are coming here to learn and practice programming in oop. What I write about, has absolutely nothing to do with OOP. Reusability of code is meant in a strictly procedural way. Loading a .png might be better put into a procedure, that allowes you, to specify (ever...
by MrSwiss
Jul 08, 2019 0:04
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46470

Re: FLTK-C-1.3.3 for FreeBASIC

My own style i would call goal-oriented. That isn't a problem. Means, what ever seems to be best and fastest to reach the goal. This however, is a problem, because this approach may leadt to: recoding the same thing many times over (no reusability of code). (This is especially applicable to: shared...
by MrSwiss
Jul 07, 2019 20:35
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46470

Re: FLTK C for FreeBASIC Jan 09, 2017

But there is still a problem to access gobal variables from within a callback. I suppose you will use "userdata" for this? Since global variables only lead to "spaghetti" code, they are generally discuraged. Therefore, using "userdata" to pass information, is the prefe...
by MrSwiss
Jul 06, 2019 17:32
Forum: Windows
Topic: My Windows 10 PCs don't show programs of graphic.
Replies: 6
Views: 1335

Re: My Windows 10 PCs don't show programs of graphic.

There is absolutely nothing wrong with that "Hello World" example in WIN 10. (It works as expected.) There may be a problem, with the "Japanese" (translated) version only. This would mean, that contacting "Microsoft-Japan" would be the only path, in order to resolve the...

Go to advanced search