Conventional C++ and Add Web Services reference errors

D

Doru Pacurari

Hello everyone,

Background information:

OS: Win 2000 Server
Development environment: Microsoft C++ .NET, version 7.1.3088, BUT
code written in conventional C++

Problem:

We are working on a project written in conventional C++, that is using
MFC, COM (in ArcObjects, a GIS development tool) and OpenGL.
The project is compiled using .NET, and then we tried to add a Web
Reference to Web Services created using Axis. After adding the Web
Services reference, was necessary to rename the namespaces in the
*.wsdl file that was generated to the name of the Web Reference.
Then, when tried to recompile the project, we got the next errors:

-----------------------
Compiling...
StdAfx.cpp
WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET
Server)
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\oledb.h(6360) : error C2011: 'ICommand' :
'struct' type redefinition
c:\projects\GIS\ROAMMFC_NET v1.0\Debug\esricore.tlh(15499) :
see declaration of 'ICommand'
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\oledb.h(9113) : error C2011:
'ITableDefinition' : 'struct' type redefinition
c:\projects\GIS\ROAMMFC_NET v1.0\Debug\esricore.tlh(59106) :
see declaration of 'ITableDefinition'
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\oledb.h(13374) : error C2011: 'IRow' :
'struct' type redefinition
c:\projects\GIS\ROAMMFC_NET v1.0\Debug\esricore.tlh(58111) :
see declaration of 'IRow'
-------------------

We guess the bottom line to all this is if we could use a conventional
C++ project to talk to the Web Services, or we need a managed C++
project? But, since we need to use conventional C++ project, is there
an alternative to talk to the Web Services (i.e., would SoapToolkit or
PocketSoap do a better job)?

Thank you and we would really appreciate any help.

Regards,
Doru
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top