// Register the library and function, assigning it a JavaScript // function name var myExternalLib = registerCFunction("JSExtLib", "c:/winnt/extlib.dll", "getMyDate") // If the library registered without error, then call it using the // callC function. If it failed, then write an error to the page. if (myExternalLib) { write(callC("getMyDate", 1999, 2000)); }else{ write("There was an error processing this external library function"); }