hi
i will give you example of com.COM means component object model access the methods and properties to your application.
Ex:1.how to accessing the methods in your com object
note:our COM object name is ADO( Activex Data Object )
QTP CODE:
Dim Cn Rs
set Cn CreateObject( ADODB.Connection )
1.note:syntax:set objectName CreateObject( ProgramId )
2.note:every com object having one program id
set Rs CreateObject( ADODB.Recordset )
Cn.ConnectionString path of the Database
Note:1.Cn is the Object name
2.use this Cn object we can access the methods and properties of our COM object
Rs.Open quer name cn
Rs.Move First
Note:Rs.Move First means move the first record