How can the functions inside DLL be called from QTP?
i mean How can i use those functions(Inside DLL) in QTP



How can the functions inside DLL be called from QTP? i mean How can i use those functions(Inside DL..

Answer / jay prakash

This part is a two step process…

Declare the method using Extern.Declare
Example
Extern.Declare
micHwnd, “FindWindow”, “user32.dll”, “FindSomeWindow”,
micString, micString

Here:
micHwnd -the data type of value returned by method
FindWindow -the user supplied procedure name. You can set
it to anything as long as it’s a valid syntax.
user32.dll -the DLL from where you wish to call the method
FindWindowA -The actual method name inside the DLL
Last two are the data types of the arguments that will be
passed to the procedure

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More QTP Interview Questions

can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

0 Answers   Sapient, Satyam, TCS,


how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?

8 Answers   INCA, Infosys, Logix, SLK Software, Symphony, Wipro,


What is the another extention name of library file.If that is exist than what's the differnce between them.

1 Answers   Synechron,


How can we check whether a particular sheet loaded (existed) or not in Data Table.

7 Answers   TCS,


whare exactly we have to use functions and sub routain

0 Answers  






how do u handle an object without name using QTP 9.2?

0 Answers   CTS,


Why u don’t like recording the script and writing the script

3 Answers   Wipro,


When we use Object Spy? can we write QTP script before built is came in testing?

3 Answers   Impulse,


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

0 Answers  


What are the different ways to invoke an application using QTP?

0 Answers  


Explain how you can delete excel file in qtp?

0 Answers  


WHAT IS ENVIRONMENT VARIABLES?

6 Answers   Ordain Solutions,


Categories