How to make RPC calls in C++ .Net webservice

G

Guest

Hello,
Currenlty we use ISAPI DLLS on our site. These dlls are making rpc calls to
another NT services on that same machine. I am planning to use C++ web
service using .NET 2003 instead of ISAPI dlls. However i want to use existing
mechanisam defined in NT serives. So my question is how can we make rpc calls
(Way we can make from isapi dlls) from webservice.

I tried to add simple .idl file in C++ web service project. It compiles to
client and server stubs. Once i try to include client stub in webservice,
client stub does not compile. If i try to use precompile header (by changing
project settings ) i get follwoing errors during compil time:
error C2857: '#include' statement specified with the /Ycstdafx.h
command-line option was not found in the source file
OR
error D2016 : '/YXstdafx.h' and '/clr' command-line options are incompatible


If i do not include any precompile header, it compiles but i get following
error at link time:
error LNK2020: unresolved token (0A000013) MIDL_user_allocate
error LNK2020: unresolved token (0A000014) MIDL_user_free

What am i doing wrong??
Please help me.
Thanks in advance.
 

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

Top