Re: Dyn loaded files and owner status window
- From: "GTi" <tunlid@xxxxxxxxx>
- Date: 8 Jan 2006 07:28:45 -0800
Jon Skeet [C# MVP] wrote:
> GTi wrote:
> > I have a main exe program that have a status window.
> > This exe program loads several dll files with Assembly.LoadFile.
> > I want now this dll files to send my exe program messages so I can
> > display it
> > on my status window.
> > Is there any way I can call a class in my exe program from dll files?
> > The dll files don't know about the exe files and the exe program that
> > loaded may or may not have a status window.
>
> I suggest you do this using interfaces defined in another DLL -
> interfaces that both your program and your DLLs know about. The easiest
> way would probably be to make the classes in your DLLs implement an
> interface that had an event (or set of events), and then make your main
> program subscribe to those events.
>
> Jon
Do you have any good samples for this?
.
- References:
- Dyn loaded files and owner status window
- From: GTi
- Re: Dyn loaded files and owner status window
- From: Jon Skeet [C# MVP]
- Dyn loaded files and owner status window
- Prev by Date: Re: IComparer Question
- Next by Date: Re: Add an Array to an Array (Or a better way to do this)
- Previous by thread: Re: Dyn loaded files and owner status window
- Next by thread: Re: Dyn loaded files and owner status window
- Index(es):
Relevant Pages
|