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 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 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. |