Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2007

Tip: Looking for answers? Try searching our database.

Managed lib into unmanaged project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dp_mpi - 25 Jun 2007 11:38 GMT
Hello Everybody,
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.

Any suggestion is welcome.

Thank you in advance.

Daniele
Ben Voigt [C++ MVP] - 25 Jun 2007 14:28 GMT
> Hello Everybody,
> I am developing a managed lib (using Microsoft Web Services) and I am
[quoted text clipped - 3 lines]
> 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

You need to use /EHa, not disable exception handling.

> previously working included libs.
>
[quoted text clipped - 3 lines]
>
> Daniele
dp_mpi - 25 Jun 2007 15:56 GMT
> > Hello Everybody,
> > I am developing a managed lib (using Microsoft Web Services) and I am
[quoted text clipped - 13 lines]
>
> > Daniele

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 *'

Does it exists a way in order to avoid those errors?

Thank you
dp_mpi - 25 Jun 2007 17:54 GMT
> > "dp_mpi" <daniele.pagli...@gmail.com> wrote in message
>
[quoted text clipped - 48 lines]
>
> Thank you

solved.

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

Thank you.

Daniele

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.