Communication problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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. :)
 
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!
 
Bagger said:
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.
 
Back
Top