Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Fizpok on April 26, 2013, 12:14:16 PM



Title: C++ sources needed
Post by: Fizpok on April 26, 2013, 12:14:16 PM
Hi,
I am looking for C++ (preferably - Visual C++, ideally - an archive contaiing a sln and ready to be built) example(s) of SIMPLE code, communicating with bitcoind.
It should do same things we can do with bitcoind from command line.

Is it out there?


Title: Re: C++ sources needed
Post by: Remember remember the 5th of November on April 26, 2013, 12:23:30 PM
Sadly no, at most you can get is some code of C miners with MinGW. Visual C++? Not that I am aware of, since Bitcoin is compiled with MinGW and mostly under Linux, people have not bothered with Visual C++ about anything, especially in C++.

There are some PHP dev kits which are mostly platform independent.


Title: Re: C++ sources needed
Post by: hynodeva on April 26, 2013, 12:26:30 PM
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


Title: Re: C++ sources needed
Post by: grue on April 26, 2013, 04:23:15 PM
bitcoind provides API through json-rpc. just search for json-rpc code samples.