The example works nicely, and the system seems very convenient. I made a small C++ dll now using extern "C" and it's fine too. Thanks very much for the help! John
On Fri, 29 Mar 2002, David Matthews wrote:
John, There's nothing special about a DLL for use with Poly/ML. If you can build a DLL for use with C or Visual Basic then it will work with Poly/ML. The Windows programming interface in Poly/ML is largely done by calling Windows system DLLs. To build a DLL you need some sort of Windows development environment. I've been using Visual C++ but you should be able to use anything. You will normally need a .DEF file which contains a list of the functions you want to export from the DLL. I made a very simple example some time ago and I'm including it as a ZIP archive. It was done with Visual C++ and includes an ML file which calls the DLL. You can write your DLL in C++ but all the exported functions have to use C calling conventions. You really need to look at the documentation for your development environment to find out how to construct a DLL.
Hope that helps. David.
earlier questions by me