Solved

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

Posted on 2004-09-20
6
206 Views
Last Modified: 2010-05-02
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

0
Comment
Question by:TAF2000
  • 3
  • 2
6 Comments
 
LVL 19

Accepted Solution

by:
RanjeetRain earned 394 total points
ID: 12106869
Your question isn't very clear. What exactly do you want to do?

To implement these protocols is not a piece of cake. You can read their specifications etc at the sites that take care of their standards.

If you want to know, your system is already capable of handling many protocols. It is at least configured to understand them. System registry contains settings for them.

Handling these protocols is different from implementing them. From your question text it sounds like you want to implement them, but practically thinking you might just be interested in handling htem.

The registry entry to handle Gopher protocol for instance, is located under HKEY_CLASSES_ROOT\gopher. Similarly there are entries for most popular protocols.

As for implementing these protocols, they are typically implemented by sophisticated servers and used by clients that are programed to make requests in those protocols.

You may like to check these registry keys:

HKEY_CLASSES_ROOT\PROTOCOL_NAME
HKEY_CLASSES_ROOT\PROTOCOLS\Handler
0
 

Author Comment

by:TAF2000
ID: 12107338
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
0
 
LVL 17

Expert Comment

by:zzzzzooc
ID: 12109540
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12111381
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.
0
 

Author Comment

by:TAF2000
ID: 12116465
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.  
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12116502
Glad to help. Just out of curiocity - mail me a copy once you are done with your softy :>
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question