Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
433 views
by
I am getting below error while using the TestComplete automation suite.

---------------------------
TestComplete
---------------------------
VBScript runtime error.

The 'USER32' type was not defined. To define a DLL type, call the DefineDLL function.

Error location:
Unit: "ProjectSuite1\Admin\Script\Common"
Line: 288 Column: 5.
---------------------------
OK  
---------------------------

1 Answer

0 like 0 dislike
by Expert (572 points)
 
Best answer
You should define DDL as below.

    Set dDLL = DLL.DefineDLL("USER32")

    dProc = dDLL.DefineProc("LoadCursorW", vt_i4, vt_ui2, vt_i4)

    Set lib = DLL.Load("USER32.DLL", "USER32")


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...