CustomerServices DLL

Snoops

   

 
Migrating to .NET: A Pragmatic Path to Visual Basic .NET, Visual C++ .NET, and ASP.NET
By Dhananjay  Katre, Prashant  Halari, Narayana  Rao  Surapaneni, Manu  Gupta, Meghana  Deshpande

Table of Contents
Chapter 14.   Visual C++ .NET Migration Case Study


In this DLL we are providing a wrapper over four COM components. These components are VCLoginCom, VCOrdersCom, VCReportsCom, and VCStockServiceCom. The methods exposed by this dll are

 graphics/icon01.gif ReportCancelledOrders(CHttpServerContext *pCtxt, CString    strCustId, CString strBuySell);  ReportApprovedOrders(CHttpServerContext *pCtxt, CString    strCustID, CString strBuySell);  GetUnapprovedOrders(CHttpServerContext *pCtxt, CString    CustomerId, CString BuySell);  GetStocks(CHttpServerContext *pCtxt);  GetStockPerformance(CHttpServerContext *pCtxt, CString    strStockID);  GetPortfolioInfo(CHttpServerContext *pCtxt, CString    strCustId);  GetCustomerDetails(CHttpServerContext *pCtxt, CString    strCustId);  Logout(CHttpServerContext *pCtxt, CString UserName);  ChangePassword(CHttpServerContext *pCtxt, CString UserName,    CString OldPasswd, CString NewPasswd);  Login(CHttpServerContext *pCtxt, CString UserName, CString    Passwd);  ExecuteOrder(CHttpServerContext *pCtxt, CString CustId, CString    StockId, float fStockPrice, long iQuantity, CString BuySell);  GetStockPrice(CHttpServerContext *pCtxt); 

These methods internally call the methods that are implemented in the COM component. The method name in ISAPI DLL is same as method of COM component for easy mapping.

AdminServices DLL

This DLL wraps the VCAdminCom component. The methods exposed by this DLL are

 graphics/icon01.gif UpdateCustomer(CHttpServerContext *pCtxt, CString UserID,    CString OldPasswd, CString NewPasswd, CString Name, CString    Address, double Phone, CString Email, float Margin, float    MinAmount);  ReportCancelledOrders(CHttpServerContext *pCtxt, CString    strCustId, CString strBuySell);  ReportApprovedOrders(CHttpServerContext *pCtxt, CString    strCustID, CString strBuySell);  Login(CHttpServerContext *pCtxt, CString UserName, CString    Passwd);  GetUnapprovedOrders(CHttpServerContext *pCtxt, CString    CustomerId, CString BuySell);  GetCustomerDetails(CHttpServerContext *pCtxt, CString    CustomerId);  GetCustomers(CHttpServerContext *pCtxt);  CancelOrder(CHttpServerContext *pCtxt, long OrderId);  ChangePassword(CHttpServerContext *pCtxt, CString UserName,    CString OldPasswd, CString NewPasswd);  ApproveOrder(CHttpServerContext *pCtxt, long OrderId);  AddCustomer(CHttpServerContext *pCtxt, CString UserID, CString    Passwd, CString Name, CString Address, double Phoneno,    CString Email, float Margin, float MinAmount); 

These methods internally call the methods that are implemented in the COM component. The method name in this ISAPI DLL is the same as the method of the COM component for easy mapping.


Snoops

   
Top


Migrating to. NET. A Pragmatic Path to Visual Basic. NET, Visual C++. NET, and ASP. NET
Migrating to. NET. A Pragmatic Path to Visual Basic. NET, Visual C++. NET, and ASP. NET
ISBN: 131009621
EAN: N/A
Year: 2001
Pages: 149

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net