How to pass multiple item names in rfs

harik
harik Newcomer

Dear Team


how to get market price multiple item names in single call.


For example i am passing SGD= and JPY= and i need to receive price for both at a time.



Tagged:

Best Answer

  • @harik

    Are you using windows 64bit?

    As far as I understand on windows 64 bit you must change the registry path

    from

    HKEY_LOCAL_MACHINE\\SOFTWARE\\

    to

    HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\


    You need to search and replace the path on the source files and registry files. Also, you need to run it with Admin right if you turn on Windows Event Logger.

    I would suggest you modify the codes to use RFA config from a file instead by changing WIN32 to WIN32x from the following line in StarterConsuemr.cpp

    #ifdef WIN32x
        RFA_String exampleRfaCfgRegPath("HKEY_LOCAL_MACHINE\\SOFTWARE\\Reuters\\RFA\\Default", 0, false);
        AppUtil::log(__LINE__, AppUtil::TRACE, "Reading RFA configuration registry: %s", exampleRfaCfgRegPath.c_str());
        result = _pStgCfgDataBase->load(windowsRegistry, exampleRfaCfgRegPath);
    ...

    #ifdef WIN32x
        RFA_String exampleAppCfgRegPath("HKEY_LOCAL_MACHINE\\SOFTWARE\\Reuters\\RFA\\StarterConsumer_BatchView", 0, false);
        AppUtil::log(__LINE__, AppUtil::TRACE, "Reading Aplication configuration registry: %s", exampleAppCfgRegPath.c_str());
        result = _pAppStgCfgDataBase->load(windowsRegistry, exampleAppCfgRegPath);

Answers