Recent

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

devEric69

  • Hero Member
  • *****
  • Posts: 648
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: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

Pixy

  • New Member
  • *
  • Posts: 49
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: 5446
  • 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: 6090
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..
The only true wisdom is knowing you know nothing

Pixy

  • New Member
  • *
  • Posts: 49
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.

 

TinyPortal © 2005-2018