You need to define these 2 functions.
See:
http://msdn.microsoft.com/library/de...allocate_1.asp
If you want to use precompiled headers you need to switch to using the /Yc
and /Yu model instead of /YX.
Ronald Laeremans
Visual C++ team
"Bhavesh Padmani" <Bh************@discussions.microsoft.com> wrote in
message news:33**********************************@microsof t.com...
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.
--
Bhavesh Padmani