473,698 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_alloc ate
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 4251
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.mi crosoft.com> wrote in
message news:33******** *************** ***********@mic rosoft.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_alloc ate
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
3385
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 you can see to have two web service methods of the same name and will show them as such in intellisense. I am wondering if there is any concern in doing this? Is there any documentation anywhere that explains what might be happening with SOAP...
0
1087
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 Web Service have support for calling webmethods in a batch or transaction ?. case-1: say the 3 methods do an insert, update and delete respectively on a database. How can I call all the 3 of them transactionally case-2: say the 3 methods are...
3
1034
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
2423
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 the same domain. Client is a Windows Form Client (no ASP.NET yet) which connects to the WebService. Before WebService I would make a SQL Server connection with
1
1104
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 application pool (so I have 2 w3 workers). What are the potential problems / issues / benefits with making ASMX calls between the workers??? (For example, app A is the web service that I want to call from app B). I've seen / heard many say...
5
4371
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 i can get this answer.. Thanks
1
1178
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 that "Process started". 3. i need to return the Message "Process Started " and in the background i need to continue the work which the WebService method is intended to do . 4. once i complete the work in the webservice , i need to send a reault back
4
1289
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 service API. I am measuring the performance of ASMX. What I found is that the first a few thousand calls are all getting through quickly as I expected. Then the call was blocked by IIS or ASP.Net because my break point does not get hit for a few...
1
1113
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 a parameter to a Crystal Report webservice which requires binding during Instantiation. I need set the value of the string at this time. Thanks
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8904
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.