14

We have a need to interoperate between one of our web apps and a Win32 app created in Delphi.

A colleague suggested using a custom protocol handler like ourcompany://something to pass information to the app.

Is this possible with Delphi (5 Enterprise), or not? If it's available in later versions, we'll look to sourcing a license for that.

Cheers!

Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467
Drarok
  • 3,612
  • 2
  • 31
  • 48
  • Welcome to Stack Overflow. When you say "someone here suggested," it would be helpful if you provided a link to that answer to provide context for this question. – Rob Kennedy Feb 11 '10 at 17:47
  • 1
    Rob: I guess 'someone here' referes to someone there, at 'ourcompany'. 'We have a need' and 'Someone here, inside the group of 'We' suggested'... :-) – Vegar Feb 11 '10 at 21:54
  • Oops, yes, not very clear of me. Someone at work. – Drarok Feb 11 '10 at 22:53
  • As discussed here: http://msdn.microsoft.com/en-us/library/windows/desktop/hh848047(v=vs.85).aspx The concepts on this thread no longer work as of Windows8. So what is the new answer for Win8? Thread is here: http://stackoverflow.com/questions/18244619/register-custom-protocol-handler-on-win8-in-delphi-7-2006-app – Jonesome Reinstate Monica Aug 15 '13 at 00:44

3 Answers3

13

MSDN has an article explaining the whole thing. It describes the registry entries you need to set up, and it describes the command line that Internet Explorer will use to invoke your program.

There's nothing to prevent you from writing a protocol handler in any Delphi version you want.

Rob Kennedy
  • 161,384
  • 21
  • 275
  • 467
9

A custom protocol handler is a registered COM object that implements the IInternetProtocol interface.

Here http://www.doogal.co.uk/plugprot.php is some information on how to implement it in Delphi.

PA.
  • 28,486
  • 9
  • 71
  • 95
6

Yes, as a matter of fact that is exactly how the IDE Welcome page works. We register a custom protocol handler for bds://.

Allen Bauer
  • 16,657
  • 2
  • 56
  • 74