+ Reply to Thread
Results 1 to 2 of 2

Thread: What is error C2668: 'InlineIsEqualGUID' : ambiguous call to overloaded function?

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    29

    What is error C2668: 'InlineIsEqualGUID' : ambiguous call to overloaded function?

    I just created a COM DLL.

    I created a new class using class wizard.

    Then I created a simple method in COM interface using method wizard.

    Code:
    HRESULT GetData(LONG *pResultData);
    I compile the code an get this error:

    error C2668: 'InlineIsEqualGUID' : ambiguous call to overloaded function

    How to resolve this?

    Am I making any mistake in creating COM class or anything else?

    Please help.

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    38
    This is because of the ATL namespace.

    Use following code instead where you found the error.

    Use "::ATL::InlineIsEqualGUID" instaed of just "InlineIsEqualGUID".

    Hope this helps.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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