return type of BSTR??

I want to write a function in a class library which is the return type of the function is BSTR, how can i do that Can anyone give me an example source code


Answer this question

return type of BSTR??

  • MARCOSEDRALIN

    There is no BSTR type in .NET, you should use String.

  • Mikaelm

    Hi, chongsk

    You mean the one in UnmanagedType Enumeration

    Thanks



  • Marie-Thérèse

    Hi ,

    Could u please post the solution for ur problem , if u have got

    Thanx in advance.

    Regards,
    Ch.T.Gopi Kumar.



  • JDWCLG

    Ya,

    There is no BSTR type in .NET.Use String in the class library.

    This'll be converted to BSTR , when the above library is used in VC++ client.

    Thanx,

    Ch.T.Gopi Kumar.



  • return type of BSTR??