Recent

Author Topic: [RESOLVED] Pascal & .NET Interoperability  (Read 1476 times)

devEric69

  • Full Member
  • ***
  • Posts: 138
Re: Pascal & .NET Interoperability
« Reply #15 on: May 24, 2019, 10:32:33 am »
Quote
Is it possible to combine Pascal with Visual Basic? At least I would like to read a variable from one language in the other.

A few 2-cent ideas:
- to dialogue via creation\deletion of text file names, names that emulate a rustic protocol.
- if .net supports the SOAP protocol, then it's a way to communicate between 2 programs written in different languages.
use: Ubuntu 18.04 + Laz. 1.8.5 + FPC 3.0.5 (64 bits).

Pixy

  • New Member
  • *
  • Posts: 40
Re: Pascal & .NET Interoperability
« Reply #16 on: May 30, 2019, 03:26:11 pm »
How about external? Can I show my VB form with

Code: Pascal  [Select]
  1. function ShowForm: boolean; stdcall; external 'C:\...\VB.dll';
  2.  

?

PascalDragon

  • Hero Member
  • *****
  • Posts: 620
  • Compiler Developer
Re: Pascal & .NET Interoperability
« Reply #17 on: May 31, 2019, 09:03:53 am »
If you mean VB.net, then no, you can't. You need to use one of the points I mentioned.

jamie

  • Hero Member
  • *****
  • Posts: 1990
Re: Pascal & .NET Interoperability
« Reply #18 on: May 31, 2019, 12:54:53 pm »
I suppose one could check to see If the app has any OLE abilities or do what I have done a few times in the
past and that was get the menu handles of the app and send messages to it to trigger the functions..

Pixy

  • New Member
  • *
  • Posts: 40
Re: Pascal & .NET Interoperability
« Reply #19 on: May 31, 2019, 01:54:08 pm »
I see. Well, thank you very much guys, the only effective way seems to be COM with OleVariants. I still have issues, but I managed to show my form. I mark this topic as resolved. Special thanks to Dragon.