win32 api to xml-rpc

C

capamaru

hi there

is there a way to get the hole win32 api to xml-rpc method?

i know some functions from win32 api is not possible to be exported
because they return objects
but at least they will give an error.

one way would be with eval() but there is no such function at c++

do you have any ideas?

thanks in advance
 
V

Victor Bazarov

capamaru said:
is there a way to get the hole win32 api to xml-rpc method?

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?
i know some functions from win32 api is not possible to be exported
because they return objects
but at least they will give an error.

"Give an error"? I think you're using some terminology related
to "xml-rpc", but that's not topical here, I'm afraid.
one way would be with eval() but there is no such function at c++

Right, there is no such function.
do you have any ideas?

You should consider finding the right newsgroup to post this.
I think a Windows programming newsgroup might actually be not
such a bad choice.

V
 
C

capamaru

Ï/Ç 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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top