Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

The call is ambiguous between ....: '__Psz.__Psz(string)' and '__Psz.__Psz(IntPt 09 Nov 2016 10:10 #597

  • ArneOrtlinghaus
  • ArneOrtlinghaus's Avatar
  • Topic Author


  • Posts: 337
  • The following code gives the error below
    local pszBuffer as psz
    local ptrBuffer as ptr
    ...
    pszBuffer := psz( _cast, ptrBuffer )

    The call is ambiguous between the following methods or properties: '__Psz.__Psz(string)' and '__Psz.__Psz(IntPtr)'

    Currently I do not know what should be a better conversion having to use the WINAPI functions with pointers.


    (Sorry for sending so many topics in so few time, perhaps you answer too quickly, it is nice to have responses so quickly, I feel important... :-)
    )

    Arne

    Please Log in or Create an account to join the conversation.

    The call is ambiguous between ....: '__Psz.__Psz(string)' and '__Psz.__Psz(IntPt 09 Nov 2016 10:58 #600

    • Chris
    • Chris's Avatar


  • Posts: 3750
  • Arne,

    I could not reproduce this with our current build, but not with the latest FOX release either, so maybe I am trying something slightly different than you. What compiler options are you using? Can you also please post a small compilable repro sample?

    See, it took a bit more time to reply this time, this needed some more research!

    Chris
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1