CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2002
    Posts
    1,417

    can not find olepro32.lib

    I'm having a problem similar to the one in this thread. I am using VC++ 2005 Pro, created a Smart Device MFC ActiveX control, call OleTranslateColor() but fails to find the library. I looked in the compiler's C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib directory and sure enought there is no such library.

    Any other ideas where it might be ? maybe M$ moved it to a different library? And yes, I've already read several google links and msdn but no help.

    Thanks

  2. #2
    Join Date
    Jun 2002
    Posts
    1,417

    Re: can not find olepro32.lib

    nevermind. I changed it to use TranslateColor() and it compiles and links ok.

  3. #3
    Join Date
    Apr 2005
    Location
    Norway
    Posts
    3,934

    Re: can not find olepro32.lib

    One solution that worked for me was to prefix the OleTranslateColor with the ATL namespace, like:
    Code:
    ATL::OleTranslateColor(...);
    - petter

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