Link to home
Start Free TrialLog in
Avatar of TAF2000
TAF2000

asked on

Handling a protocol? such as ftp:// irc:// aim:

I am making a program, and I would like to be able to control it though a website similar to how other programs do.

Such as ftp, irc, and aim might do with ftp://  irc://  aim:..

I have searched the net.. and looked around in the registry, etc.. and I cant figure out how to begin.

Thanks
TAF

ASKER CERTIFIED SOLUTION
Avatar of RanjeetRain
RanjeetRain

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TAF2000
TAF2000

ASKER

Sorry for not being clear.  

For example.. in aim you can click on a link that says:

aim:BuddyIcon?ScreenName=myscreenname

and it will bring up the info for your screen name in aim..


so.. I want to be able to make a link on a webpage that says:

myprog:info="Jones"

and my program will recieve that message and handle it.

So I would assume it takes 2 parts.  Code for the program to handle the request, and something in the registry to make it so that the myprog: link will work.

From the info you gave me, I figured out how to do the first part.. through adding HKEY_CLASSES_ROOT\myprog\shell\open\command , etc..

Seems it would be handled just like command line vars.. however, the program may or may not already be open when it recieves the command.

Thanks Alot
Don't you worry about that part. The OS handles it for you. If the host application isn't running, it launches the application. In your application you should handle the command line arguments.

THis is exactly how, Yahoo and AIM work.
Avatar of TAF2000

ASKER

Well, even if the host application is running, it launches a second instance of the application.  However, I don't expect that I will get a response I can use here because I have decided to use vb.net for this application instead of vb6.  I will close out this question and post in the vb.net section.  Thanks alot RanjeetRain, and zzzzzzoc for the link.  That info has gotten me half way there.  
Glad to help. Just out of curiocity - mail me a copy once you are done with your softy :>