Forum Discussion

ritesh_chauhan's avatar
ritesh_chauhan
Contributor
13 years ago

What are the steps to load a C# library in Test complete

How to load a C# library in Test complete?

Have tried the following:



lib = DLL.load("Lib path", "USER 32")



but it says:  "USER32" is not defined, call DefineDLL function.



Can you tell me how to use the DefineDLL fn with example.

2 Replies

  • Also we have used, CLR bridge for loading C# dll library.

    But it works on one machine(accessing all methoda inside library) and not on the other machine.



    Can you tell the probable cause and solution for it.

  • Hi Ritesh,


     


    You'd better use the CLR Bridge feature to call routines from .NET assemblies. So, let's try to sort out why it doesn't work on one of your computers. So, please answer the following questions:


    1. Are you using one project on both machines?


    2. Do you get any error when calling a routine on the problematic computer?


    3. What TestComplete version are you using (Help | About)?