Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function to Unload previous loaded DLL
#8
Not Solved
Code:

Code:
const DLL_PATH=getenv("M_ROOT") & "\\arch\\KILLDLL.dll";

public function init_dll()
{
    load_dll (DLL_PATH);
    generator_add_category("DLL functions");
    generator_add_function( "dll_kill","Kill the App",1,"arg1","type_edit","",2,"arg2","type_edit","");
    generator_add_function_to_category("DLL functions","dll_kill");
}
public function close_dll()
{
    unload_dll (DLL_PATH);
}

extern int dll_kill(in string,in string);    

init_dll();

#Kill Application
dll_kill("App Identifier","");

AppKill = "Yes";

if(ErrFlag == "Yes")
{
    updateResultFile( )    
}

close_dll();

generator_add_category function is used exclusively with the Function Generator. When new functions are created and the user wishes to place them into a new category, a new category is added to the utility using this function....adds a category to the Function Generator.

generator_add_function function is used exclusively with the Function Generator. It adds a function to the list of those that can be programmed with the Function Generator... adds a TSL function to the Function Generator.

generator_add_function_to_category function is used exclusively with the Function Generator. It adds a function which is already in the function table to a previously defined category. This function is useful when adding a new function to the Function Generator.

getenv function reads the current value of an environment variable.
Reply


Messages In This Thread
RE: Function to Unload previous loaded DLL - by prabhu656656 - 08-27-2009, 09:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,113 06-26-2015, 12:31 AM
Last Post: babu123
Exclamation How to verify whether pdf is completely loaded or not in webpage nmakkena 1 2,671 08-27-2014, 04:09 PM
Last Post: vinod123
  How to call testscript after executing previous one. upadhyay40 3 3,703 04-27-2014, 10:14 PM
Last Post: Wigi
  Using QTP with dynamically loaded swf QDev 0 1,904 01-18-2013, 08:37 PM
Last Post: QDev
  Verify images get properly loaded or not(Broken Images) in respective pages nilanjans 4 4,056 01-17-2013, 10:51 AM
Last Post: nilanjans

Forum Jump:


Users browsing this thread: 1 Guest(s)