Exeption "Invalid Usage" when loading Configuration from windows registry WIN32

I am using RFA 8.1, Windows server 2012 R2 edition and VS2013. I am trying to run StarterProvier_Interactive example for WIN32. I have added the registry files ExampleRFA.reg and StarterProvider_Interactive.reg as provided. I build the code and run the exe generated. I get the exception "Invalid registry path for [SOFTWARE\Reuters\RFA\Default] . Is there any step I am missing

Best Answer

  • @ngupta44

    Are you running a 32-bit version on 64bit OS, right? If so you may need to modify registry file to add the RFA node under WOW6432Node node instead

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Reuters\RFA 


    You can also change the example to read config from a file instead, by changing the codes when loading the config from
    #ifdef WIN32

    to
    #ifdef WIN32x

Answers