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 boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

0 Answers  


Hello Everybody, Please tell me can we create Test Plan in QTP? This I am asking irrespective to integrating with Test Director.I mean is there any option to create Test Plan in QTP itself. Thanks, Gaytri

4 Answers  


hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji

2 Answers  


Tell me Three major differences between QTP & Winrunner?

2 Answers  


I am not able to record yahoomail browser.its giving error like "The browser Application can't be launched .Posssibly the URL is wrong" So anyone can tell me what setting i have to do in qtp??

1 Answers  






Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

0 Answers  


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

0 Answers   IBM,


Differentiate the two Object Repository Types of QTP.

5 Answers  


Among all the check points what is the most important checkpoint?

5 Answers   Semantic Space,


How many test scripts are prapare in ur project(HeathCare Insurance).

1 Answers   Virtusa,


What are the common defects found in your project? (in qtp interview)

0 Answers   TCS,


After geting the modules where we generate the script ie in qtp or notpad ?

1 Answers  


Categories