473,396 Members | 1,734 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,396 software developers and data experts.

help about vc alt webservice

hi,everyone.
i create a vc atl console app that consume a c# implemented .asmx
webservices ,and this is the
client vc++ code:
#include "stdafx.h"
#include "documentproxy.h" //web services proxy stub header
using namespace Document;

int _tmain(int argc, _TCHAR* argv[])
{
CoInitialize(NULL);
{
HRESULT hr;
CDocumentT<CSoapWininetClient> srv;
LPCTSTR szUrl = TEXT("<some web services end point url.asmx>");
srv.SetUrl(szUrl);
srv.SetTimeout(2000);
BSTR szRet;
HRESULT hRet=NULL;
hRet=srv.HelloWorld(&szRet);
if( SUCCEEDED(hRet))
{
printf("Result %S\n", szRet);
::SysFreeString( szRet);
}
srv.Cleanup();
}
CoUninitialize();
return 0;
}

everytime when i execute the code,i get a error as :
runtime error R6025
- pure virtual function call

my environment is vs.net 2003 with .net framework 1.1 and OS winxp sp2.
can anyone help me? thanks!

Dec 17 '05 #1
0 750

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

Similar topics

1
by: David | last post by:
Hi All, I am having trouble cleaning up after creating/calling my webservice (WSE1.0) from COM Addin that I create for Outlook. If I shutdown Outlook with using my webservice, Outlook shutsdown...
0
by: batista | last post by:
Hello all, I am using a webpage having a grid and im calling a webservice method(using webservice.htc) which after 5 seconds updates the content of the grid, uptil now everything is working...
0
by: batista | last post by:
Hello all, I am using a webpage having a grid and im calling a webservice method(using webservice.htc) which after 5 seconds updates the content of the grid, uptil now everything is working...
1
by: smerf | last post by:
I am really new to this .Net stuff, but I am wondering if you can help me with a webservice issue. I have 15 locations that need to access a webservice. The webservice accepts XML and returns...
0
by: Jeova Almeida | last post by:
Hello, I created a simple web service for testing purpose in Visual Studio 2005: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="WSTest" %> using System;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.