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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is output value? How many types of output values are there in qtp?

580


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

1878


What the differences are and best practical application of Object Repository?

592


What is text/text area checkpoint?

564


could any help me please, how to work on visual foxpro application using UFT

1687






Difference between test object and run time object?

592


How will you declare a variable in qtp?

556


Explain object spy in qtp.

587


What are the two types of repositories available, explain them?

594


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

1862


i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.

1382


can u explain relative path architecture framework in qtp?

1563


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

2427


can anyone tell me from where i can download qtp demo or crack version

1621


what is ODC and GDC?

7353