// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


#include "stdafx.h"
#include "ice_gtrade.h"

/////////////////////////////////////////////////////////////////////////////
// CICE_gTrade

IMPLEMENT_DYNCREATE(CICE_gTrade, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CICE_gTrade properties

/////////////////////////////////////////////////////////////////////////////
// CICE_gTrade operations

long CICE_gTrade::Login(LPCTSTR strProfilePath, LPCTSTR strSession)
{
	long result;
	static BYTE parms[] =
		VTS_BSTR VTS_BSTR;
	InvokeHelper(0x1, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		strProfilePath, strSession);
	return result;
}

void CICE_gTrade::Logout(LPCTSTR strSession)
{
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 strSession);
}

long CICE_gTrade::GetConnectStatus(LPCTSTR strSession)
{
	long result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x3, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		strSession);
	return result;
}

long CICE_gTrade::ProcessOrder()
{
	long result;
	InvokeHelper(0x4, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

long CICE_gTrade::GetOrderCount()
{
	long result;
	InvokeHelper(0x5, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

CString CICE_gTrade::GetOrderString(long nIndex, long nField)
{
	CString result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x6, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		nIndex, nField);
	return result;
}

double CICE_gTrade::GetOrderValue(long nIndex, long nField)
{
	double result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x7, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
		nIndex, nField);
	return result;
}

long CICE_gTrade::GetFillOrderCount()
{
	long result;
	InvokeHelper(0x8, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
	return result;
}

CString CICE_gTrade::GetFillOrderString(long nIndex, long nField)
{
	CString result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x9, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		nIndex, nField);
	return result;
}

double CICE_gTrade::GetFillOrderValue(long nIndex, long nField)
{
	double result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0xa, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
		nIndex, nField);
	return result;
}

long CICE_gTrade::QueryStatement(long nInfoType)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0xb, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		nInfoType);
	return result;
}

long CICE_gTrade::GetStatementCount(long nInfoType)
{
	long result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0xc, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		nInfoType);
	return result;
}

CString CICE_gTrade::GetStatementString(long nInfoType, long nIndex, long nField)
{
	CString result;
	static BYTE parms[] =
		VTS_I4 VTS_I4 VTS_I4;
	InvokeHelper(0xd, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
		nInfoType, nIndex, nField);
	return result;
}

double CICE_gTrade::GetStatementValue(long nInfoType, long nIndex, long nField)
{
	double result;
	static BYTE parms[] =
		VTS_I4 VTS_I4 VTS_I4;
	InvokeHelper(0xe, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
		nInfoType, nIndex, nField);
	return result;
}

void CICE_gTrade::ClearOrder()
{
	InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CICE_gTrade::SetOrderInfoString(long nField, LPCTSTR strData)
{
	static BYTE parms[] =
		VTS_I4 VTS_BSTR;
	InvokeHelper(0x10, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 nField, strData);
}

void CICE_gTrade::SetOrderInfoValue(long nField, double dbData)
{
	static BYTE parms[] =
		VTS_I4 VTS_R8;
	InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 nField, dbData);
}

long CICE_gTrade::TouchanceLogin(LPCTSTR strProfilePath, LPCTSTR strSession)
{
	long result;
	static BYTE parms[] =
		VTS_BSTR VTS_BSTR;
	InvokeHelper(0x12, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		strProfilePath, strSession);
	return result;
}

long CICE_gTrade::TouchanceLoginX(LPCTSTR strLoginInfo)
{
	long result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x13, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
		strLoginInfo);
	return result;
}

void CICE_gTrade::SetSecurities(long nSecurityType, LPCTSTR strSecurityName, long nSecurityValue)
{
	static BYTE parms[] =
		VTS_I4 VTS_BSTR VTS_I4;
	InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 nSecurityType, strSecurityName, nSecurityValue);
}

void CICE_gTrade::TouchanceLoginY(LPCTSTR strLicenseFile)
{
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x15, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 strLicenseFile);
}

void CICE_gTrade::AboutBox()
{
	InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
