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

What are the advantages of QTP over WinRunner?

5 Answers   CTS,


What is object spy in quicktest professional?

0 Answers  


can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

0 Answers  


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

0 Answers   HSBC, T Mobile,


Write VB script to test given number is Prime Number

5 Answers   Oracle,


Are You using any frame work? What is that? Explain about that.

4 Answers   Wipro,


What’s the QTP testing process?

1 Answers  


when u script reveiwing in which area u more concentrates?

0 Answers   IBM,


What is meant by Step Generator in Qtp How is it used? pls gimme in detail

7 Answers   AppLabs,


how to test power point using QTP 8.2 ? What are different methods to retrieve value from Application during runtime ?

3 Answers   HCL,


How we can we create a Text checkpoint in QTP 9.1,Actually what i did is first i put in recording mode and gofor Inser menu>Checkpoint>Textcheckpoint>click,Now an hand symbol came and i showed it to some textbox and cliked but the QTP9.1 is giving an error message like "The Obkect you are selecting doesn't support this operation" If i go for Help of QTP 9.1 information I didn't get any solution,pls help me in this issue.

6 Answers  


How to recognize and read data from pdf file using Descriptive Programming in QTP?

1 Answers   Satyam,


Categories