08-28-2009, 10:21 AM
I guess you are trying to implement this particular script in QTP, in which you have Close_DLL function and you are not able to do that. Am I right?
in that case I can say dont bother for unloading the dll. once you open a new test QTP unloads the dll itself.
you can use the dll in your script wherever you need to kill the application, using Extern.Declare or createobject (whatever applicable)
Now whenever you need to Kill the application just call your function dll_Kill.
once your application is killed, You will have to reopen your Application to proceed further, for this check your application is open or not each time your test case begins and if not open it.
does this help?
in that case I can say dont bother for unloading the dll. once you open a new test QTP unloads the dll itself.
you can use the dll in your script wherever you need to kill the application, using Extern.Declare or createobject (whatever applicable)
Now whenever you need to Kill the application just call your function dll_Kill.
once your application is killed, You will have to reopen your Application to proceed further, for this check your application is open or not each time your test case begins and if not open it.
does this help?