Search found 1187 matches
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 ...
- Jul 11, 2019 13:24
- Forum: Libraries
- Topic: Accessing GIF Frames and Displaying GIF Images/Animations
- Replies: 13
- Views: 2801
It's all in GdiPlus. If Windows is fine for you, search for GdipImageSelectActiveFrame
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.
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...
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.
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...
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.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.
Maybe use a pipe?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.
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.
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?
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...