please Can any one give the equalvalent code in asp.net using c#
Requirements for using the interface:
Support for the Distributed Component Object Model (DCOM)
Primarily: MS Visual Basic, MS Visual C++
DLL Location: https://www.xyz.net
DLL Class: SWSServices.clsServices
Sample Visual Basic Code:
strServer = “https://www.xyz.net”
strDLL = “SWSServices.clsServices”
Dim dcom as New RDS.DataSpace
Dim dcom2 as Object
Set dcom2 = dcom.CreateObject(strDLL, strServer)
Ret = dcom2.GetData(Company, UserName, Password, iData, _
oData, err_Msg)
Select Case Left(Ret, 4)
Case “0000”
‘Success – Process using oData
Case “9999”
‘Fatal Error – Error message in err_Msg Parameter
‘For Debugging Purposes
Case Else
‘Error in Data
‘For Example trying to process a batch that isn’t closed
‘ yet
End Select
Set dcom2 = nothing
Set dcom = nothing