Can you use a DLL written in Fortran (or other languages than C/C++)?

Previous topic - Next topic

JohnnyB

I am not sure at the moment how this "INLINE" stuff really works.



dreamerman

It doesn't matter what programming language was used to make dll file, only what matters it that it should export functions with 'stdcall' calling convention, also 'cdecl' is supported without problems. (info about calling conventions: https://en.wikipedia.org/wiki/X86_calling_conventions) You can use DECLARE keyword to make direct use of dll functions in your code: http://www.glbasic.com/xmlhelp.php?lang=en&id=191&action=view
If you encounter problem with some specific dll and function just ask. GLB code is translated to c++, then compiled (so it doesn't have limitations present on other such tools), you can write direct c++ code to make use of some specific things not available directly on GLB itself ;)
Check my source code editor for GLBasic - link Update: 20.04.2020

JohnnyB

That's good. I will use C++ or Fortran for complex calculations for my AI.

SnooPI

Woah!, I just realized that it's my message with Obama's "Can you do it? ... Yes, you can!!!" that made me go from "Mr. Polyvector" to "Dr. Type" :D
It's cool!  :good: