Communication problem

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!
 
M

Matt Berther

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. :)
 
G

Guest

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!
 
S

Sean Hederman

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top