2 Attachment(s)
Internal Errors in: VC7\PlatformSDK\ - error C2872
Hi guys. Thank you for your attention.
I am developing right now a Wrapper C++ Managed to be able to use a library C++ Unmanaged in a “.NET” application.
When I compiled it, some .NET internal errors were found. The unit/file with problem is “ServProv.h” and the erros are:
Error 1:
Quote:
\Vc7\PlatformSDK\Include\ServProv.h(93) : error C2872: 'IServiceProvider' : ambiguous symbol
could be '\Vc7\PlatformSDK\Include\ServProv.h(48) : System::IServiceProvider IServiceProvider'
or 'Stdafx.cpp(0) : System::IServiceProvider'
Code:
ServProv.H (93):
"typedef /* [unique] */ IServiceProvider *LPSERVICEPROVIDER;"
Error 2:
Quote:
\Vc7\PlatformSDK\Include\ServProv.h(100) : fatal error C1903: unable to recover from previous error(s); stopping compilation
linhas.cpp
Before that, I found one warning:
Quote:
\Vc7\PlatformSDK\Include\ServProv.h(48) : warning C4935: assembly access specifier modified from 'public'
ServProv.H (48):
Code:
"typedef interface IServiceProvider IServiceProvider;"
Do U guys know what is going on here?
Note: I have put my Wrapper class attached but I do not see a conection with this internal errors...
Thanks in advanced and cheers from Brazil.
Re: Internal Errors in: VC7\PlatformSDK\ - error C2872
When I comment some includes, this error stop.
Code:
//.#include <alloc.h>
#include <stdio.h>
//.#include <cstring.h>
//.#include <dir.h>
// ELiseu Comentou em 20051223
#include <io.h>
//#include <ctype.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
//#include <dos.h>
//#include <errno.h>
//#include <wtypes.h>
Re: Internal Errors in VC++7\PlatformSDK\ - help
Hey man
Don't worry about that internal error message, just comment the preprocessor line:
#include "wtypes.h"
and you'll overcome it, at least it worked just fine for me. OK!
Perhaps your next question would be ... Why does it happen in that way? Well, it could be a good matter for another thread.
Good luck!!
Re: Internal Errors in VC++7\PlatformSDK\ - help
I need to use "wtypes.h" because I have legacy code in my project that uses "LOGPALETTE" and "wsprintf".
How I can use that without have this error?
Quote:
\Vc7\PlatformSDK\Include\ServProv.h(93) : error C2872: 'IServiceProvider' : ambiguous symbol could be '\Vc7\PlatformSDK\Include\ServProv.h(48) : System::IServiceProvider IServiceProvider' or 'Stdafx.cpp(0) : System::IServiceProvider'
Re: Internal Errors in VC++7\PlatformSDK\ - help