[fpc-pascal] dot net dll in free pascal?
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
> 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...
More information about the fpc-pascal