Conventional C++ and Add Web Services reference errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doru Pacurari

    Conventional C++ and Add Web Services reference errors

    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\Platfo rmSDK\Include\o ledb.h(6360) : error C2011: 'ICommand' :
    'struct' type redefinition
    c:\projects\GIS \ROAMMFC_NET v1.0\Debug\esri core.tlh(15499) :
    see declaration of 'ICommand'
    c:\Program Files\Microsoft Visual Studio .NET
    2003\Vc7\Platfo rmSDK\Include\o ledb.h(9113) : error C2011:
    'ITableDefiniti on' : 'struct' type redefinition
    c:\projects\GIS \ROAMMFC_NET v1.0\Debug\esri core.tlh(59106) :
    see declaration of 'ITableDefiniti on'
    c:\Program Files\Microsoft Visual Studio .NET
    2003\Vc7\Platfo rmSDK\Include\o ledb.h(13374) : error C2011: 'IRow' :
    'struct' type redefinition
    c:\projects\GIS \ROAMMFC_NET v1.0\Debug\esri core.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
Working...