getting info from a dll
Posted on 2003-02-20
I'm trying to code a dll using visual basic and my problem is as follows ...
This dll has a class module with a public procedure (the one used to pass in parameters) and a form. The values are passed on to this form in order to show them up in text boxes. On this form I have a command button (called 'apply') and I want to use it to send back the info in these text boxes (in case the info in them is modified by the user) to the application that called the dll and so be able to take in the new info coming from the text boxes. As you guys can see, the user could click on the 'apply' button at any time and the dll should be prepared to send the new info back to the application that called it. And more, how can the initial application know that someone click on the 'apply' button, so being ready to do 'something' to get the new values ...
I've tried with events but can't get it working.
I've been checking on different sites for a bit of help but all the examples are with public functions that use byref parameters to take values in and give back the results after all the business logic, but everything is whithin the same call (synchronous calls) and don't fit what I'm looking for.
Your help would be appreciated (plus a beer! :-) )