Click to See Complete Forum and Search --> : Internal Errors in VC++7\PlatformSDK\ - help


Eliseu_CEL
December 22nd, 2005, 12:25 PM
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:

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



ServProv.H (93):
"typedef /* [unique] */ IServiceProvider *LPSERVICEPROVIDER;"


Error 2:

\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:

\Vc7\PlatformSDK\Include\ServProv.h(48) : warning C4935: assembly access specifier modified from 'public'


ServProv.H (48):

"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.

Eliseu_CEL
December 26th, 2005, 11:15 AM
When I comment some includes, this error stop.



//.#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>

SpyroJ@zZ
January 26th, 2006, 02:52 PM
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!!

Eliseu_CEL
January 31st, 2006, 04:18 PM
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?


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

Eliseu_CEL
February 3rd, 2006, 08:08 AM
See the solution in http://www.codeguru.com/forum/showthread.php?t=374155.

Thanks.