Can Delphi be used to create and handle a custom protocol handler?

跟風遠走 提交于 2019-11-28 20:36:35

问题


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!


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/2246192/can-delphi-be-used-to-create-and-handle-a-custom-protocol-handler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!