Hi guys,
I'm working with a VB6 Form and using a DLL which I created in VB6 ActiveX DLL.
On this Form, I call one method from the DLL, and after calling that method I want my form to be unloaded.
How can I do this?
Thank you.
Printable View
Hi guys,
I'm working with a VB6 Form and using a DLL which I created in VB6 ActiveX DLL.
On this Form, I call one method from the DLL, and after calling that method I want my form to be unloaded.
How can I do this?
Thank you.
I'm not sure how VB works exactly.. it is very undetermined and unpredictable what it will do.. but from a C++ programmers point of view.. this would be very bad practice.
Your program will no doubt leave the handle to the DLL open and sitting in memory somewhere.. as well as a few other resources.
What you SHOULD do, is set a flag in the DLL, check for it in the Form, and unload both from the form.
chem
Then unload it from your VB6 program. The DLL does not have to become involved in mundane tasks like unloading forms.Quote:
Originally Posted by rpc86