CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

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

    Question What can I do to use wtypes without internal errors?

    I have a project that uses legacy code C++ with lots of references to the file wtypes.h. Basically this use the function wsprintf and PALETTEENTRY. If I include this file I get the error C2872 in compile time:

    error C2872: 'IServiceProvider' : ambiguous symbol
    could be '\Vc7\PlatformSDK\Include\ServProv.h(48) : System::IServiceProvider IServiceProvider'
    or 'Stdafx.cpp(0) : System::IServiceProvider'
    How can I use wtypes avoiding this error C2872?
    Last edited by Eliseu_CEL; February 1st, 2006 at 03:20 PM. Reason: better format
    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