I have a number of tools that I use in programming are DLL files and I am wondering how I can use those dll files in Servoy. In VFP I simply use the Declare statement to load the dll but I have not found any documentation about how or if this is possible in Servoy.
if your DLLs are COM/DCOM objects, then you might want to have a look at Scott’s COM Plugin on ServoyForge:
Christopher Decker’s DJNativeSwing-SWT (which is the library I use for the BrowserSuite: http://www.servoyforge.net/projects/browsersuite) has also many powerful options to interact with windows specific components if by any chance the COM plugin was not fitting your bill.
if your DLLs are COM/DCOM objects, then you might want to have a look at Scott’s COM Plugin on ServoyForge: Overview - COM Plugin - ServoyForge
Christopher Decker’s DJNativeSwing-SWT (which is the library I use for the BrowserSuite: http://www.servoyforge.net/projects/browsersuite) has also many powerful options to interact with windows specific components if by any chance the COM plugin was not fitting your bill.
For non COM components, you will have to wrap calls into a Java plugin that will use JNI or JNA and thus give you easy scripting access to the DLLs methods.
If you want to use te COM plugin … the solution is to wrap the non.activex.dll into an activex.dll and then use it. It’s very easy to do it and you don’t need to know C/C++.
Maybe too many bridges to cross the river … useful just if speed is not neccesary.
If you just have some standard DLL’s, but they aren’t written as COM objects, you can convert them. What language was the DLL written in? if something like .NET or FoxPro, I think the conversion is pretty easy. In the sample solution download in ServoyForge, there is a sample solution that shows integrating with several built in COM objects in Windows.
I need to use non-COM dll’s written in C. I will checkout the suggestions given here but it does sound like a lot of hoops to jump through not to mention the performance penalty.