Re: Managed code into project using unmanaged code

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Jun 25, 4:43 pm, dp_mpi <daniele.pagli...@xxxxxxxxx> wrote:
On Jun 25, 2:39 pm, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:



"dp_mpi" <daniele.pagli...@xxxxxxxxx> wrote in message

news:1182773706.862306.35110@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

On Jun 25, 2:00 pm, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:
"dp_mpi" <daniele.pagli...@xxxxxxxxx> wrote in message

news:1182768655.829331.158630@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

I am developing a managed lib (using Microsoft Web Services) and I
am including it into a c++ project. The project doesn't use /clr
optionk, so when I include my linbrary's header file vs 2005 show
me an error saying I have to use /clr option. Doing this I have a
incompatibility with /EHs command line option (error D8016), but
changing from EHs to no exception handling I obtain a huge ammount
of error from all other previously working included libs.

Why not change from /EHs to /EHa ?

With /EHa I have same error.

Same as what? Show the error message and the code it complains about.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925

Sorry, my fault.. just a little confusion. With /EHa I have following
errors:

error C2872: 'Byte' : ambiguous symbol e:\progetti\cristiano.demuru\e-
gateassistenza\ultravnc_e-gate\ultravnc\zlib\zconf.h 270
error C2872: 'IServiceProvider' : ambiguous symbol c:\programmi
\microsoft visual studio 8\vc\platformsdk\include\servprov.h 93
error C3699: '*' : cannot use this indirection on type
'IServiceProvider' c:\programmi\microsoft visual studio 8\vc
\platformsdk\include\servprov.h 93
error C2371: 'IServiceProvider' : redefinition; different basic types
c:\programmi\microsoft visual studio 8\vc\platformsdk\include
\servprov.h 100
error C2872: 'IServiceProvider' : ambiguous symbol c:\programmi
\microsoft visual studio 8\vc\platformsdk\include\servprov.h 117
error C2872: 'IServiceProvider' : ambiguous symbol c:\programmi
\microsoft visual studio 8\vc\platformsdk\include\servprov.h 231
error C2872: 'IServiceProvider' : ambiguous symbol c:\programmi
\microsoft visual studio 8\vc\platformsdk\include\servprov.h 238
error C2872: 'IServiceProvider' : ambiguous symbol C:\Programmi
\Microsoft Visual Studio 8\VC\PlatformSDK\include\urlmon.h 5174
error C2872: 'IServiceProvider' : ambiguous symbol C:\Programmi
\Microsoft Visual Studio 8\VC\PlatformSDK\include\urlmon.h 5176
error C2664: 'vncService::PostAddAutoConnectClient' : cannot convert
parameter 1 from 'System::String ^' to 'const char *'




solved.

There was an header calling "using namespace system" before a #include
<windows.h>.

Thank you.

Daniele

.



Relevant Pages