Reputation: 87
I have a C function which returns a BSTR like "Hello world" and in Excel 11 I can call this function to print the string with the msgbox vba function. With Excel 16, I only have an returned empty string. If I am in debug with XCode, I can see my BSTR and it is not empty.
Do you have any idea to get a BSTR, returned by a C function, with the VBA of Excel 16?
Upvotes: 1
Views: 115
Reputation: 87
I used SysAllocString but this function return NULL pointer. To fix my problem, I need to create my BSTR byte by byte
Upvotes: 1