I'm loading a form from within a DLL. I want to let the form call certain
functions within the DLL, but I'm not sure how to do that without creating
something elaborate. There's got to be an easy way to do that, right? Any
help would be appreciated. Thanks!

Re: Communication problem by Matt

Matt
Tue Apr 19 16:35:53 CDT 2005

Hello Bagger,

It should not be difficult at all... Create an instance of the class that
contains the method you wish to call and call it. :)

--
Matt Berther
http://www.mattberther.com

> I'm loading a form from within a DLL. I want to let the form call
> certain functions within the DLL, but I'm not sure how to do that
> without creating something elaborate. There's got to be an easy way
> to do that, right? Any help would be appreciated. Thanks!
>



Re: Communication problem by Bagger

Bagger
Tue Apr 19 23:06:03 CDT 2005

I need to have the form communicate with the specific instance of the class
that called it. If I create a new instance, that new one won't have the
proper references to it's own calling class. I was wondering if it was
possible to create a form with a constructor that accepts a reference to the
calling class so that it can communicate with it. Does that sound doable, or
am I going about this the wrong way? Thanks!


"Matt Berther" wrote:

> Hello Bagger,
>
> It should not be difficult at all... Create an instance of the class that
> contains the method you wish to call and call it. :)
>
> --
> Matt Berther
> http://www.mattberther.com
>
> > I'm loading a form from within a DLL. I want to let the form call
> > certain functions within the DLL, but I'm not sure how to do that
> > without creating something elaborate. There's got to be an easy way
> > to do that, right? Any help would be appreciated. Thanks!
> >
>
>
>

Re: Communication problem by Sean

Sean
Tue Apr 19 23:41:33 CDT 2005

"Bagger" <Bagger@discussions.microsoft.com> wrote in message
news:94ED6761-CE40-45AA-86B5-09DA05525FE4@microsoft.com...
>I need to have the form communicate with the specific instance of the class
> that called it. If I create a new instance, that new one won't have the
> proper references to it's own calling class. I was wondering if it was
> possible to create a form with a constructor that accepts a reference to
> the
> calling class so that it can communicate with it. Does that sound doable,
> or
> am I going about this the wrong way? Thanks!

That's a perfectly acceptable approach.

> "Matt Berther" wrote:
>
>> Hello Bagger,
>>
>> It should not be difficult at all... Create an instance of the class that
>> contains the method you wish to call and call it. :)
>>
>> --
>> Matt Berther
>> http://www.mattberther.com
>>
>> > I'm loading a form from within a DLL. I want to let the form call
>> > certain functions within the DLL, but I'm not sure how to do that
>> > without creating something elaborate. There's got to be an easy way
>> > to do that, right? Any help would be appreciated. Thanks!
>> >
>>
>>
>>