Oberon Community Platform Forum
October 23, 2019, 03:54:30 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: DLL  (Read 5756 times)
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
DLL
« on: September 01, 2010, 12:24:17 PM »

I made a small library for the support of Windows-DLL in Aos.
Sources located in OcpComun.

There are 2 examples:

1)TestDll.Mod
An example call is a function of the DLL (helloword1,helloword2), which in call is a function of A2 (TestDll.String, TestDll.Int).
Thus the procedure call:
Aos->DLL->Aos

2) SQLite3.
Worked uder WinAos, but to work under native A2 need port ~38 function.
Logged
Alexey
Newbie
*
Posts: 27


« Reply #1 on: September 30, 2010, 09:26:29 AM »

Hi Bohdan!

what are the steps to get your DLL working in A2? I am personally very interested in having such a feature, for example to be able to use FFTW library (which is claimed to be C-portable to any platform) directly in A2 without porting C code to Oberon. Is this possible? Smiley

Best regards,
Alexey
Logged
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« Reply #2 on: September 30, 2010, 10:50:15 AM »

Hi Alexey!

Yes it is possible, on the idea right now it can be used.
If you can, send the required dll that I could debug the code.
restriction - there is no memory protection!
The problem could be if DLL requires the presence of other libraries.

Best regards,
Bohdan.
Logged
Bernhard T.
Administrator
Full Member
*****
Posts: 164


« Reply #3 on: September 01, 2011, 08:43:54 AM »

Hi Bohdan,

thanks a lot. I almost missed that, but had been stumbling over the Delphi source recently here:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20974729.html
which looks a bit similar to Gumerov's stuff ...

Is there any documentation besides the russian original of Maxim Gumerov on the Delphi version?

The problem could be if DLL requires the presence of other libraries.

Dependencies can be determined (under Windows) with Silurian Inspect (http://www.silurian.com/inspect/index.htm).

regards
    Bernhard
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!