How to use an External DLL in Servoy?

Hi

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.

Thanks
Simon

Hi Simon,

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.

Hope this helps,

I think you just missed the webinar with Ken Levy we hosted earlier this week that discussed the use of the COM plugin Patrick mentioned.

The recorded version of this webinar should pop up in the list of recorded webinars over the next couple of days there: http://www.servoy.com/content.jsp?t=920&mt=393

Paul

pbakker:
I think you just missed the webinar with Ken Levy we hosted earlier this week that discussed the use of the COM plugin Patrick mentioned.

The recorded version of this webinar should pop up in the list of recorded webinars over the next couple of days there: http://www.servoy.com/content.jsp?t=920&mt=393

Paul

I did see Ken use COM objects but I did not see him use standard non COM dlls.

ptalbot:
Hi Simon,

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.

Hope this helps,

I also need to be able to use non-COM dlls.

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.

Hi dcipher

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. :wink:

Best regards. Roberto.

My COM plugin uses JACOB. More info here if you want to digg into it: http://sourceforge.net/projects/jacob-project/
More info here as well: http://servoyguy.com/servoy_components/ … com_plugin

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.

Thanks,
Simon