08-27-2009, 09:32 PM
Code:
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.
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.