[fpc-pascal] dot net dll in free pascal?

Sven Barth pascaldragon at googlemail.com
Tue May 14 00:15:52 CEST 2019

Luca Olivetti <luca at ventoso.org> schrieb am Mo., 13. Mai 2019, 23:14:

> A sizeable part of my day job is to program PLCs in the worst software
> environment ever (for the curious, simatic tia portal, actually I'm
> mostly using the older, only marginally better, step 7, but the times
> they are a-changin').
> Said piece of sh^H^Hfine engineering, provides a dll to automate some
> tasks, however, being a steaming pile of...fine engineering, it's made
> with dot net and the instructions on how to use it only mention visual
> something (page 12 of this document
> https://support.industry.siemens.com/cs/attachments/108716692/108716692_TIA_Openness_GettingStartedAndDemo_V14SP1_en.pdf
> ).
> Is it possible to someway use it with fpc?
> I tried the "import type library.." menu item that lazarus provides with
> no success ("error loading the dll", strangely enough localized even if
> my lazarus is in english, so I suppose that comes from windows).
> The file command under Linux says:
> Siemens.Engineering.dll: PE32 executable (DLL) (console) Intel 80386
> Mono/.Net assembly, for MS Windows

You could try to host the .Net CLR. I've never done it, but there exists
code for that for Delphi:
So that should be possible in FPC as well.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190514/031c48f6/attachment.html>

More information about the fpc-pascal mailing list