473,394 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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


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
Nov 17 '05 #1
1 4238
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Doug | last post by:
Hello, For a long time we've been told that you can't overload web service calls but recently we found a way to do it using the WebMethod attribute as in the example below. This will allow us as...
0
by: ranga | last post by:
>> don't know if this is the right group to post this message. but trying anyway! >> the client i am developing using C# needs to call 3 WebMethods in a webservice together as a batch-- does XML...
3
by: Ryan Moore | last post by:
Does anyone know if there is another method for making asynchronous client side calls to server methods (without page refreshing) besides JavaScript Remote Scripting? thnx
1
by: Marc Eggenberger | last post by:
Hi there .. I have the following scenario. I have a Webservice which is running under Win2003/IIS6 with .Net1.1 The Service itselfs connects to a database which is a SQL 2000 on a Server in...
1
by: MichaelY | last post by:
Looking for some best-practice advice.... Let's say I have an W2k3 / IIS 6.0 box that is running a website with 2 vdirs (seperate applications) underneath it. Each of these vdirs is in it's own...
5
by: SenthilVel | last post by:
Hi Can any one let me know how i can perform a Asychronous calll in a web service ? or using a thread in Asmx a better solution than the async call ? pls send me any link to example, where...
1
by: SenthilVel | last post by:
Hi all i have a requirement in my application where in need to call a web service: 1. My client calls my webservice . 2. when i receive a call from my web servcie i need to notify my client...
4
by: Hao | last post by:
I developed a ASMX web service with empty boday (return immediately). The API has a few parameters, all .Net objects. The client application is a simple WCF client keep calling this ASMX web...
1
by: =?Utf-8?B?Sm9zZXBoIEsuIENvYmI=?= | last post by:
I was wondering if there is a simple way to persist a value between calls to a Webservice that would yield something similar to a Session variable or Query string? Specifically, I'm trying to pass...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.