Re: Dyn loaded files and owner status window

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




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?

.



Relevant Pages

  • Re: Dyn loaded files and owner status window
    ... > I have a main exe program that have a status window. ... > This exe program loads several dll files with Assembly.LoadFile. ... I suggest you do this using interfaces defined in another DLL - ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Dyn loaded files and owner status window
    ... >> I have a main exe program that have a status window. ... >> This exe program loads several dll files with Assembly.LoadFile. ... > interfaces that both your program and your DLLs know about. ...
    (microsoft.public.dotnet.languages.csharp)
  • Dyn loaded files and owner status window
    ... I have a main exe program that have a status window. ... This exe program loads several dll files with Assembly.LoadFile. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Dyn loaded files and owner status window
    ... Jon Skeet wrote: ... >> I have a main exe program that have a status window. ... >> This exe program loads several dll files with Assembly.LoadFile. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Detect if dialog page is active and button enabled
    ... I concur with your assessment of SendKeys. ... which function would you suggest I use to get the child window ... Appleman doesn't talk about the tab control. ... The *.exe program must already be open. ...
    (microsoft.public.vb.winapi)