Home » Category » DotNet Visual C

DotNet Visual C: i wish to access web service

206| Mon, 31 Dec 2007 14:55:00 GMT| rafatsubhanvia_net247| Comments (0)
(Type your message here)
#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;
#import <msxml4.dll>
using namespace MSXML2;
using namespace MSXML2::ServerXMLHTTPClass;

int _tmain()
{
// TODO: Please replace the sample code below with your own.
ServerXMLHTTPClass *x = new ServerXMLHTTPClass();
String *strQuery=S"https://www.maxmind.com/app/ccv2r?i=24.24.24.24&domain=yahoo.com&city=New+York®ion=NY&postal=10011&country=US&bin=549099"
x->open("GET",strQuery,false);
x->send();
Console::WriteLine(x->responseText());
Console::ReadLine();
Console::ReadLine();
}
this is my code and i am getting error c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ServProv.h(93) : error C2872: 'IServiceProvider' : ambiguous symbol
could be 'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ServProv.h(48) : System::IServiceProvider IServiceProvider'
or 'stdafx.cpp(0) : System::IServiceProvider'

Please help me

----------
From: Rafat Subhan

--------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>RjWpizbtz0eOYO7bAZME9A==</Id>

Keywords & Tags: wish, access, web, service, dotnet, visual, .net

URL: http://dotnet.itags.org/visual-c/71187/
 
«« Prev - Next »» 0 helpful answers below.

DotNet Visual C Hot Answers

DotNet Visual C New questions

DotNet Visual C Related Categories