Ï/Ç Victor Bazarov Ýãñáøå:
What's "the hole win32 api"? Which hole do you mean? What's
"xml-rpc method"? I can't find anything about it in the C++
language definition? Are you sure you're in the right newsgroup?
win32 api is when you include eg kernel32.dll
you have some basic functions available to manage file systems,
devices, processes and threads, access to the windows registry and so
on
there are some libraries that export a c++ function to xml-rpc
like
http://xmlrpc-c.sourceforge.net/
eg you have an function that adds 2 values
sorry but i dont know too much about c++ so i will give you an example
at php
function addValues($a, $b)
{
return ($a+$b)
}
now with xml-rpc library you export this function as a call method on
a socket
and a client opens a socket to the daemon and sends an xml string that
has <methodName>method.addValues</methodName>
<params>
<a><int>5</int></a>
<b><int>6</int></a>
</params>
the server then executes addValues with the parameters received from
the xml string it got on the socket.
and returns a specific xml response string to the socket
this is how it works
you need on the daemon a line wich looks something like this
xml_rpc_server_register_method('method.addValues', addValues());
in order to register the addValues function
now what i whant is to register all the functions that kernel32.dll
gives me when i include it on my c++ daemon.
is there any way to do it?
with a loop or something ?