SilkTest Question 52: How to fix DLL cannot be loaded error?

Imagine that your coworker Senior Test Engineer created sophisticated DLL for SilkTest which would dramatically improve the speed of regression test execution by replacing lame addition operator + with fast Add() function and asked you to use it in your 4test scripts. Eager for fight you created the script below and run it.

silktest faq

Oops! It seems that the bulletproof 4test code return the following error "*** Error: DLL cannot be loaded – Error 126". How to fix this error?

The official Microsoft description of this error code is 126L ERROR_MOD_NOT_FOUND The specified module could not be found. In plain English it means - Silk Test is not able to find the specified DLL. One of the solutions would be to provide the full (and of course correct) path to the DLL. In this case the call may look like dll 'c:\udharan\winrunner.dll' or something similar.

1 comment:

Harish said...

Hi,

I'm trying to use the application DLL functions.

But not getting the correct to apply into my scripts.

Please help me with Simple SendMessage function as example.

Thanks,
Sri

SilkTest interview questions for QA Testers