troubleshooting Question

VS.NET & VC++ 6 component interoperability errors

Avatar of sindbad
sindbad asked on
.NET Programming
4 Comments1 Solution1409 ViewsLast Modified:

Platform : Win2000 Profesional.
IDE : Visual Studio .NET

Uses : STL, MFC & COM dlls

I'm developing a Console application ( NT service ) that calls component ( dlls ) developed in VC++ 6 and connect to a WebService.

The Webservice vendor provide us the URL and using the URL a web reference was added to the project. VS.NET generated a WSDL file and a wrapper class to be used in the application.

////////////////////////// Code starts here

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "siebelapp.h" // MFC Wrapper for COM dlls
#include "LoginService.h" // Wrapper for web service

using namespace std;
using namespace LoginService;
.
.
.
////////////////////////// Code continues

On adding the class declaration as above and compiling the application, compiler throws up hundreds of errors as given below,

c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(400): warning C4099: 'MSXML2::DOMDocument26' : type name first seen using 'struct' now seen using 'class'
        d:\FIG_SBLProcessClaim\Debug\msxml3.tlh(147) : see declaration of 'MSXML2::DOMDocument26'


c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(424): warning C4099: 'MSXML2::FreeThreadedDOMDocument' : type name first seen using 'struct' now seen using 'class'
        d:\FIG_SBLProcessClaim\Debug\msxml3.tlh(149) : see declaration of 'MSXML2::FreeThreadedDOMDocument'

c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(854): error C2872: 'SXH_OPTION_URL_CODEPAGE' : ambiguous symbol
        could be 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(853) : _SERVERXMLHTTP_OPTION SXH_OPTION_URL_CODEPAGE'
        or       'd:\FIG_SBLProcessClaim\Debug\msxml3.tlh(1252) : MSXML2::_SERVERXMLHTTP_OPTION SXH_OPTION_URL_CODEPAGE'

c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(3481): error C2872: 'IXMLDOMNode' : ambiguous symbol
        could be 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(536) : IXMLDOMNode'
        or       'd:\FIG_SBLProcessClaim\Debug\msxml3.tlh(1433) : MSXML2::IXMLDOMNode'

c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(4450): error C2872: 'IXMLDOMDocument2' : ambiguous symbol

c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(11148): error C2872: 'IXMLDOMNode' : ambiguous symbol

c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(12089): error C2371: 'ISAXXMLFilter' : redefinition; different basic types

c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml2.h(12332): fatal error C1003: error count exceeds 100; stopping compilation


My questions,

1. What is the right project (solution) type to use both existing c++ dlls, COM dlls, and connect to a webservice.

2. Is there any specific configuration setting to be added to the project properties to resolve the above mentioned issues ?.

Thanks for your help.

Sindbad

 
ASKER CERTIFIED SOLUTION
naveenkohli

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros