SysAllocString - Function

maybe off topic.

I want to return the build date, I get it as wstring_t*. There were samples using ::SysAllocString((const OLECHAR*) ...); to generate a variable which could be returned as BSTR.
No broblem on managed side (marshalling etc.), but …

I alsways get a link error, cause SysAllocString is an unreferenced external.

How can I fixed that?

I use VS2015.

With best regards


Dear @Gerhard
I’m afraid this is not a topic we can help. I suggest you address your question to Microsoft, or in a generic programming language forum.
Regards, Andy