Enter the delphi program from the .net program

I created a .net program that captures and checks fingerprints to authenticate employees.

One program we use is written in Delphi. so I'm looking for a way to authenticate a user with .net, and then open the Delphi program and pass the user credentials.

It would be best if I could fill in the registration screen, even the Delphi program is open. but if this is not possible, at least I need to open the program and transfer the credentials.

+4
source share
3 answers

You can send a Windows message - see this question .

You can add a COM object to a Delphi application and call it from your .NET application (a more modern solution).

+3
source

The best option, I think, since you can edit both programs, is to create a .NET library that does biometric authentication and call it from the Delphi program. How? Check out the JEDI project, in Jcl (it's free) you can find how to create an instance of the .NET VM, load the library and call the method (should be marked as COMVisible).

Check out this other question.

+1
source

As I understand it, here are your requirements. Elements with an asterisk are the ones you need to answer:

  • (*) How does the .Net program check if the Delphi program is running?

  • (*) How will the .Net program launch the Delphi program and wait for it to start?

  • The .Net file creates the .ini file in a consistent folder.

  • (*) As a .Net file it sends a simple โ€œthere are some credentials ready to sendโ€ message to the Delphi application.

  • The Delphi program reads an INI file.

No, this is not a complete answer. So downstream, leave me alone! :-) I don't know why I felt the need to rephrase.

0
source

All Articles