Recent

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

devEric69

  • Sr. Member
  • ****
  • Posts: 276
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 18.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: 1479
  • 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: 2880
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..
Number 1 at blue screen app creations!

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