you can download the source code of reaper, which is written in c++ and cmake creates a sln file for you...
There are some examples how to use it in Curl.cpp/Curl.h , App.h/App.cpp ... you will need the jansson lib which reaper is using
That is my first guess, i am sure there are some apps written in c++ which you can strip down to the rpc command part.
happy coding
hynodeva.com mining pool