<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Luca Olivetti <<a href="mailto:luca@ventoso.org">luca@ventoso.org</a>> schrieb am Mo., 13. Mai 2019, 23:14:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A sizeable part of my day job is to program PLCs in the worst software <br>
environment ever (for the curious, simatic tia portal, actually I'm <br>
mostly using the older, only marginally better, step 7, but the times <br>
they are a-changin').<br>
Said piece of sh^H^Hfine engineering, provides a dll to automate some <br>
tasks, however, being a steaming pile of...fine engineering, it's made <br>
with dot net and the instructions on how to use it only mention visual <br>
something (page 12 of this document <br>
<a href="https://support.industry.siemens.com/cs/attachments/108716692/108716692_TIA_Openness_GettingStartedAndDemo_V14SP1_en.pdf" rel="noreferrer noreferrer" target="_blank">https://support.industry.siemens.com/cs/attachments/108716692/108716692_TIA_Openness_GettingStartedAndDemo_V14SP1_en.pdf</a>).<br>
<br>
Is it possible to someway use it with fpc?<br>
I tried the "import type library.." menu item that lazarus provides with <br>
no success ("error loading the dll", strangely enough localized even if <br>
my lazarus is in english, so I suppose that comes from windows).<br>
<br>
The file command under Linux says:<br>
Siemens.Engineering.dll: PE32 executable (DLL) (console) Intel 80386 <br>
Mono/.Net assembly, for MS Windows<br></blockquote></div><div dir="auto"><br></div><div dir="auto">You could try to host the .Net CLR. I've never done it, but there exists code for that for Delphi: <a href="https://sourceforge.net/projects/dotnetruntimelibraryfordelphi/">https://sourceforge.net/projects/dotnetruntimelibraryfordelphi/</a></div><div dir="auto">So that should be possible in FPC as well. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>