Button click function
Hello friends,
As i am new to Vc++ I need to your help to achive this logic for my
program.
When click a "connect" button
||
it will open a window or .txt file (i dont know which will work more
better pls suggest)
And all the function output will rediret to .txt fille or window
||
Logic the way program will work after clicking a buttion .Function
call------->
sessionid=login(username,password,userid); //it will get from server
after connection
if(sessionid == true) //it will call anothjer function)
{
requestid =requestprice(sessionid,pageno); //it will get from server
to do further transaction
}
if (requestid== true)
{
requestquote(SessionId, MarketNo, Amount, TradeType, Exchange,
Account, ClientRef)
}
Function:
-----------------------------------------------------------------------------------------------------------------------
CString CArielAPI::RequestPrices(LPCTSTR SessionId, short PageNumber)
{
CString result;
static BYTE parms[] =
VTS_BSTR VTS_I2;
InvokeHelper(0x3, DISPATCH_METHOD, VT_BSTR, (void*)&result,
parms, SessionId, PageNumber);
return result;
}
CString CArielAPI::RequestQuote(LPCTSTR SessionId, long MarketNo,
LPCTSTR Amount, short TradeType, LPCTSTR Exchange, LPCTSTR Account,
LPCTSTR ClientRef)
{
CString result;
static BYTE parms[] =
VTS_BSTR VTS_I4 VTS_BSTR VTS_I2 VTS_BSTR VTS_BSTR VTS_BSTR;
InvokeHelper(0x5, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
SessionId, MarketNo, Amount, TradeType, Exchange, Account,
ClientRef);
return result;
}
--------------------------------------------------------------------------------------------------------------------------
All the function are declare and define i just need to call all the
function by passing proper parametaer and display the output in .txt
file or window which one is more ok
U friends have to suggest me.How can i do this THANKS for any kind of
support i am getting from u