Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing C++ strings by reference
#8
Code:
Copy      Help
#include <oleauto.h>
extern "C" __declspec(dllexport)
BSTR ReturnBSTR()
{
return SysAllocString(L"string");
}

Macro Macro1993
Code:
Copy      Help
dll "mydll" BSTR'ReturnBSTR

str s
s=ReturnBSTR
out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 11 Guest(s)