CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2005
    Location
    SJCampos - SP - Brazil
    Posts
    30

    Question 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:
    \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:
    \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):
    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.
    Attached Files Attached Files
    Last edited by Eliseu_CEL; December 23rd, 2005 at 03:39 PM. Reason: Using of quotes and improving the Title

  2. #2
    Join Date
    Dec 2005
    Location
    SJCampos - SP - Brazil
    Posts
    30

    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>
    Eliseu M. Gomes

    [email protected]

  3. #3
    Join Date
    Jan 2006
    Posts
    1

    Wink 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!!

  4. #4
    Join Date
    Dec 2005
    Location
    SJCampos - SP - Brazil
    Posts
    30

    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?

    \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 M. Gomes

    [email protected]

  5. #5
    Join Date
    Dec 2005
    Location
    SJCampos - SP - Brazil
    Posts
    30

    Thumbs up Re: Internal Errors in VC++7\PlatformSDK\ - help

    Eliseu M. Gomes

    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured