How to use browser link to call a delphi App?

Here is what I would like to do...

If you are viewing a web page with a browser and you click on a link like this one.


I would like for my delphi program to be called and the url passed to it so that it can go get the file '' and process it.

I want it to work just like Real Audio Player does when you click on a link for a file that ends in .ram ..... so how does one link a file suffix like .abc to the program that needs to process the file??

Does anyone know if some other delphi programmer has done this and made a program with source code available? or maybe some kind of a component?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RealAudio is not one program... it's two programs, and it works as a mean of a stream.

The server streams the data to the <OBJECT> R-A application in the client browser.

GwenaAuthor Commented:
Hi simonet :)

I was just using Real Audio as an example of how clicking on a link can cause a program to be launched....  I would like to have my program run if a user clicks on a link for a file that ends with a unique suffix like .abc  the way RA is launched when a file ends in .ram
id assume you just need to register your .abc file type in the registry..
then when its clicked it should launch your a function someone wrote:

procedure RegisterFile;

var Reg: TRegistry;

  Reg := TRegistry.Create;
    Reg.RootKey := HKEY_CLASSES_ROOT;
    Reg.OpenKey('\.abc', True);
    Reg.WriteString('', 'MyProgram');
    Reg.OpenKey('\MyProgram', True);
    Reg.WriteString('', 'a very special file');
    Reg.OpenKey('\MyProgram\DefaultIcon', True);
    Reg.WriteString('', Application.ExeName + ', 1');
    Reg.OpenKey('\MyProgram\Shell\open\command', True);
    Reg.WriteString('', Application.ExeName + ' "%1"');
    ShowMessage('successfully registered');

Regards Barry

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Nicely done Barry.  Same as my "AssociateFileType" function!

GwenaAuthor Commented:
Hi Inthe :)

That looks good!
I will try and get that to work.....
I think I will play with this on another computer..
I'm nervous about experimenting with the registry....I
messed with it once and had to reload windows :-)
GwenaAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.