If you want to use DB in C++ service you should connect to DBMS and use it's functions as you done it for generic console application, Only you should take care of OnCreate and OnDestroy methods to handle DB connection properly.
IMO much easier is to work with DB using DAS. In this case you will not write C++ web services bug deploy web services in XML. There are several of DBMS supported: sqlite, postgres, mysql (as well as shell provider available).
Examples:
Example of DAS web service:
пятница, 24 июля 2015 г., 14:54:24 UTC+3 пользователь Ramaraju V.N написал: