1

I'm trying to create a simple application that is only supposed to be called by other applications. I've taken the concept from linux where you often have a application that depends on another, and then it does api-calls to that other application. The example I'm thinking about is libnotify which enables for notification of messages with or without image and title (this can for instance be found in ubuntu linux > 9.04). And then somebody created a plugin for pidgin that when you receive a message call the libnotify-"program" to display the notification, instead of building it's own notification-method.

Well, this is more or less what I want to create myself, but on windows. I've created a application that displays notifications (sort of like msn does on new message), and then I want to create for instance facebook-notifications that whenever it need to notify anything it will just call my notification-program. I've thought about making the all the specific parts as plugins (like a facebook plugin, and a twitter plugin), but then I have to load the external dlls into my already running program, and I rather like that the other programs can just call on the first one.

Any help or thoughts on the subject would be appreciated.

3 Answers 3

2

This is what DLLs are meant for.

Make your notification code into a DLL with a public class that displays the notification. You can then make other programs that reference the DLL and use the class.

1

You can use:

  • WCF
  • COM
  • Web Services
  • Run separate Process
  • Sockets
  • Named Pipes

Basically any inter-process communication.

But the easiest would be to simply reference a dll.

0

You can make a Web Service and have it reside on a central server while all your applications have access to it.

Here is a sample web service: http://www.codeproject.com/KB/webservices/myservice.aspx

2
  • Read the question. This is not at all what he's asking for.
    – SLaks
    Nov 17, 2009 at 22:39
  • I'm confused. He's talking about a central API which can be one of several ways. One of the answers is a DLL which will have to be distributed, I suggested a web service that will be centralized. Why is it not an API that can be shared across apps?
    – Raj More
    Nov 18, 2009 at 14:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.