473,503 Members | 3,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programming For Other Programs? Plugins?

Hello,

Does anyone know how to code plugins, or code run off your own program
that affects another program?

Example: File1.exe sends the string "Test" to File2.exe (A Completely
different program) and "Test" Appears in a textbox on File2.exe.

Its kind of hard to explain, but I hope you know what I mean. I'm not asking
for code on how to do that, I'm asking for the general idea on how to do it,
but whatever you can contribute will be appreciated. Thanks. :)

- Donald.
Nov 22 '05 #1
2 1233
Donald Smith <St**************@Cox.net> wrote:
Does anyone know how to code plugins, or code run off your own program
that affects another program?

Example: File1.exe sends the string "Test" to File2.exe (A Completely
different program) and "Test" Appears in a textbox on File2.exe.

Its kind of hard to explain, but I hope you know what I mean. I'm not asking
for code on how to do that, I'm asking for the general idea on how to do it,
but whatever you can contribute will be appreciated. Thanks. :)


The way of writing plugins is usually that the "driver" program
publishes an interface (as a DLL, usually) and the plugin is another
DLL. The "driver" is then told (eg in a configuration file) the name of
the plugin DLL, and it's loaded and used via interfaces.

See http://www.pobox.com/~skeet/csharp/plugin.html for a complete
example. The main point of the article is how to avoid problems with
it, but it does give complete code.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 22 '05 #2
"Donald Smith" <St**************@Cox.net> wrote in message
news:VKRnc.49215$Fl5.23743@okepread04...
Hello,

Does anyone know how to code plugins, or code run off your own program
that affects another program?

Example: File1.exe sends the string "Test" to File2.exe (A Completely
different program) and "Test" Appears in a textbox on File2.exe.

Its kind of hard to explain, but I hope you know what I mean. I'm not asking for code on how to do that, I'm asking for the general idea on how to do it, but whatever you can contribute will be appreciated. Thanks. :)

- Donald.


We write Photoshop plugins and it works exactly as John says; a plugin is
compiled as a DLL and must contain an entry point with a specified
signature. Photoshop scans a given folder for any DLLs that have a valid
entry point, and loads them when they're called. If you're doing it
yourself, you need to be careful that you keep the interfaces identical
between host and plugin. If all your plugins have a common interface, you
can dynamically load them within the host app and call the interface
function in the knowledge that the plugin knows what to do. Be aware of
changes you make to shared data and any errors and exceptions that can get
thrown - generally, having plugins throwing unexpected exceptions is a Bad
Thing.

Steve
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
282
by: Donald Smith | last post by:
Hello, Does anyone know how to code plugins, or code run off your own program that affects another program? Example: File1.exe sends the string "Test" to File2.exe (A Completely different...
32
2756
by: cat_dog_ass | last post by:
I am used to programming in DOS mode via Borland C++. I would now like to create programs for the Windows envirinment. Is it absoultely necessary to use Visual C++ to do this? Are there other tools...
134
7879
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
2
1886
by: Juuso Hukkanen | last post by:
Language is quite good, if you don't learn the language syntax in 30 minutes complain and flame. t3d(TM) in a nutshell: -Languages main documentation is two pages (presented on the last two...
2
2711
by: Luis Arvayo | last post by:
Actually it is: How to define the plugin assemblies path in order to find other assemblies which the plugin depends on. Example: If I have: c:\myapp\application.exe
29
2206
by: SG | last post by:
Hi everyone, I am a complete novice at computers and programming and right now, all i need to know is that why do many people prefer C to C++? Is it just because they are used to using C and are...
2
1179
by: rory | last post by:
I'm working on a simple system which allows users to develop audio plugins. The plugins take the form of dll's and I have constructed the dll so that it looks for a simple text file which...
111
5427
by: Enteng | last post by:
Hi I'm thinking about learning C as my first programming language. Would you recommend it? Also how do you suggest that I learn it?What books/tutorials should I read for someone like me? Thanks...
17
4659
by: CoreyWhite | last post by:
I bought this book years ago, when I was just learning C++. Since then I've gone through every math course offered at my college, taken courses on coding C & thinking in terms how how to make the...
7
5980
Banfa
by: Banfa | last post by:
Posted by Ganon11 So, you want to learn how to program! Good for you! Programming is a very intruiging and fun activity to pick up, and it's also a great career choice if you like it! Finally,...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.