Search found 1187 matches

by jj2007
Jul 11, 2019 16:58
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4090

Re: use freebasic dll with msaccess

michaelleewebb, The code I posted further up works perfectly, from MS Access calling the FB dll. Your problem is not whether the dll sits in System32 or Wow64, it is something completely different. As far as I've understood, your MS Access does not even find the DLL file...! Check if your MS Access ...
by jj2007
Jul 11, 2019 13:24
Forum: Libraries
Topic: Accessing GIF Frames and Displaying GIF Images/Animations
Replies: 13
Views: 2801

Re: Accessing GIF Frames and Displaying GIF Images/Animations

It's all in GdiPlus. If Windows is fine for you, search for GdipImageSelectActiveFrame
by jj2007
Jul 11, 2019 13:20
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4090

Re: use freebasic dll with msaccess

No idea why it doesn't work for you. Here (Windows 7-64), I call the DLL from MS Access using the full path - it's even on a different drive. No registration needed. I can't see a reason why it shouldn't work, this is a very, very basic Windows setup and procedure.
by jj2007
Jul 11, 2019 10:56
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4090

Re: use freebasic dll with msaccess

This works fine with Ms Access (special thanks to deltarho - the Extern did the job): Declare Function SayHello Lib "C:\FreeBasic\Whatever.dll" (ByVal pString As String) As Integer Sub SayHi() Dim Res As Integer Res = SayHello("Hello") End Sub #include "Windows.bi" ' fo...
by jj2007
Jul 06, 2019 9:21
Forum: Libraries
Topic: python experiment
Replies: 33
Views: 2847

Re: python experiment

Python is slow - if you use native Python code in a speed-critical loop. If, however, you let its internal routines (coded in C or Assembly) do their job, it can by faster than anything else. Google fastest sort algorithm python to see what I mean.
by jj2007
Jul 05, 2019 1:20
Forum: Libraries
Topic: python experiment
Replies: 33
Views: 2847

Re: python experiment

The final alternative is to create a Python function using the C API and have that function pass data between FB and Python. See https://stackoverflow.com/questions/13942128/how-to-pass-an-array-from-c-to-an-embedded-python-script. The SOF article speaks only about passing data to Python. You might...
by jj2007
Jul 04, 2019 13:53
Forum: Libraries
Topic: python experiment
Replies: 33
Views: 2847

Re: python experiment

srvaldez wrote:I did a fair amount of web searching and pipes were among the hits, it's a pity that there's no simple and efficient way to exchange data.
I'm no Python expert, so it would cost me a steep learning curve, but memory-mapped files are also an option. Under Windows, you can also share data via a DLL.
by jj2007
Jul 04, 2019 10:29
Forum: Libraries
Topic: python experiment
Replies: 33
Views: 2847

Re: python experiment

srvaldez wrote:the one hairy detail is: how to exchange data between the python script and FB, sure you could write it to a file and then read it, but that's not very efficient.
Maybe use a pipe?
by jj2007
Jun 21, 2019 13:34
Forum: Community Discussion
Topic: Pulsar2D
Replies: 6
Views: 1193

Re: Pulsar2D

Thanks to everybody, will test your proposals asap.
by jj2007
Jun 21, 2019 12:01
Forum: Community Discussion
Topic: Pulsar2D
Replies: 6
Views: 1193

Pulsar2D

Does anybody know how to set up the Pulsar library? The source code zip package has a FreeBasic folder, but I don't know where to put it. When I include with full path, the linker complains with "cannot find -lSDL2" etc - the usual trial and error game...
by jj2007
Jun 19, 2019 20:42
Forum: General
Topic: smart code formatter
Replies: 9
Views: 840

Re: smart code formatter

Do you want to make a test? If it's not confidential, upload it somewhere, otherwise post a hundred lines here. If you prefer, I can give you my email here, but it would disappear asap.
by jj2007
Jun 19, 2019 19:24
Forum: General
Topic: smart code formatter
Replies: 9
Views: 840

Re: smart code formatter

The RichMasm editor has an autoformat function, but it's very specialised on x86 assembler. It would be helpful if you posted a hundred lines of example code... how many lines is the source you want to reformat?
by jj2007
Jun 15, 2019 8:21
Forum: General
Topic: Squares
Replies: 6886
Views: 403211

Re: Squares

Topic summary: Nice idea but a little bit buggy (and I don't have the time now to fix it). Thanks for confirming that this is a real coding thread. For some time I was inclined to believe that "Squares" was some secret game where old FB insiders are pulling each others' legs. So much nons...
by jj2007
Jun 14, 2019 21:06
Forum: General
Topic: Squares
Replies: 6886
Views: 403211

Re: Squares

albert wrote:The hardness is the flexibility...
No.
by jj2007
Jun 14, 2019 10:44
Forum: General
Topic: Squares
Replies: 6886
Views: 403211

Re: Squares

albert wrote:Every time you cut the length in half the hardness doubles.
No, the hardness is a constant. Basics of engineering.

Go to advanced search