I am new to programming overall, especially with the use of C++ and API. Im reading over how to login on forexconnect however I dont quite understand.
Do I need to have microsoft visual studio 2010 or some other IDE?
Can I just use a C++ compiler?
Where exactly does ForexConnect API need to be installed?
Can someone provide sample code on how to log into the server?
#include <iostream>
#include <windows.h>
#include "ForexConnect.h"
main ()
{
using namespace std;
class CSessionStatusListener : public IO2GSessionStatus {...}
IO2GSession *pSession = CO2GTransport::createSession();
CSessionStatusListener *sessionStatusListener = new CSessionStatusListener(&log, pSession, &oLoginData);
pSession->subscribeSessionStatus(sessionStatusListener);
ResponseListener *responseListener = new ResponseListener(&log, &responseQueue);
pSession->subscribeResponse(responseListener);
pSession->login("", "", "http://www.fxcorporate.com/Hosts.jsp", "Demo");
}
Is this all the code that is necessary besides inputting the log-in information and correct server URL once all installations have been properly taken care of?
Can you please provide some resources for me to learn from?
Thank you.