?
Solved

Error in bulding project using VC++!

Posted on 2006-04-10
4
Medium Priority
?
202 Views
Last Modified: 2010-04-01
Hi, Actually I am not C++ developer but I need to build this dll but I got error in building it: http://www.codeproject.com/asp/useraccesscheck.asp

Please help.
0
Comment
Question by:Abdu_Allah
  • 2
  • 2
4 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 16418221
What error exactly are you getting? *sigh*
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16418263
jkr do not sigh. If you do not want to download it and build it just get out of my face.
0
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 16418324
In TrusteeUtil.cpp, change

STDMETHODIMP TrusteeUtil::InterfaceSupportsErrorInfo(REFIID riid)
{
      static const IID* arr[] =
      {
            &IID_ITrusteeUtil,
      };
      for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
      {
            if (::InlineIsEqualGUID(*arr[i],riid)) // Problem
                  return S_OK;
      }
      return S_FALSE;
}

to

STDMETHODIMP TrusteeUtil::InterfaceSupportsErrorInfo(REFIID riid)
{
      static const IID* arr[] =
      {
            &IID_ITrusteeUtil,
      };
      for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
      {
            if (::IsEqualGUID(*arr[i],riid))
                  return S_OK;
      }
      return S_FALSE;
}
0
 
LVL 3

Author Comment

by:Abdu_Allah
ID: 16418378
Wow...that works...Thank you man.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question