I was asked what is the best way to plug the GTBs API (written in C) to a program written in Delphi or Pascal in windows. Preparing a DLL? I am not an expert on this at all, so any help will be welcome.
I found how to do this in Free Pascal in Linux but I am not so sure it extrapolates well to Windows.
Miguel
Gaviota Tablebases and Delphi
Moderators: hgm, Rebel, chrisw
-
- Posts: 6401
- Joined: Thu Mar 09, 2006 8:30 pm
- Location: Chicago, Illinois, USA
-
- Posts: 2851
- Joined: Wed Mar 08, 2006 10:01 pm
- Location: Irvine, CA, USA
Re: Gaviota Tablebases and Delphi
You're releasing the source, right? Could the Delphi developer compile them with C++ Builder and make compatible binaries?
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Gaviota Tablebases and Delphi
He can make a static library with C++ Builder and link it into Delphi code.
I program ChessGUI with C++ Builder 5 and link in Gaviota32TB.lib and gtb-probe.h.
Matthias.
I program ChessGUI with C++ Builder 5 and link in Gaviota32TB.lib and gtb-probe.h.
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de