question

Upvotes
Accepted
3 0 1 1

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

treprfarfa-apiconfigurationwin32registry
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
7.6k 15 6 9

@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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
3 0 1 1

It worked. Thanks

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.