Solved

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

Posted on 2004-09-20
6
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month5 days, 20 hours left to enroll

626 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