I have some methods that return a BSTR, and I need to concatenate those BSTRs, but it should have a space between each BSTR: BSTR a + " " + BSTR b + ...
I have some methods that return a BSTR, and I need to concatenate those BSTRs, but it should have a space between each BSTR: BSTR a + " " + BSTR b + ...
/* masterStore used below is a c# class as define here public ref class MasterStore { public: property short Code; property String^ Description;*/ ...
I'm updating an old C++ DLL project. For one of the exported functions there's The W2A macro is defined as Visual Studio 2019 flags the W2A macr ...
I am using Visual C++ 2008. In my code, I get a variable of BSTR. Now I want to change the first half of the characters in it. How to do so? For exam ...
I'm building a small wrapper for some sqlite3 functions. sqlite3.dll has a function sqlite3_column_text16() that returns a UTF-16 string. This seems ...
I am new to C++ so please bear with me. I know that _bstr_t is just a wrapper class for BSTR but, as seen in the MSDN documentation, _bstr_t does not ...
I have COM-function that returns a BSTR. and its used like that: The interface: The implementation And the client When running as debug-buil ...
While working on com interop ,i followed the tutorial on this link.The code runs fine as i have done some modification depending on my requirement but ...
How do you manually marshal a BSTR from .NET to COM? I am trying to pass a secret stored in a SecureString from my .NET application to a method on a ...
Please bear with me, i have been a c++ programmer for a little while. I need to know if i am doing this wrong. It works, but i suspect it causes a me ...
Consider following code, Is there a memory leak in this? What is the difference in this?( Still memory leak??) ...
I have a COM object written in C++ with a method using the following signature. Assume that the variant contains a BSTR (just VT_BSTR, not VT_BYREF | ...
I need to create a "SAFEARRAY of bytes" from a "BSTR" to pass it to a function. i have tried following ways to create a BYTE* from BSTR. Is there a ...
So in some Arduino code I am Serial.print a few numbers like this (var1=##,var2=##,var3=##). I have a C++ DLL that I am making to get this information ...
I'm a newbie with C++ and I've taken over a COM project to fix some issues. The current issue I'm working on is handling UTF8 strings. I have this pie ...
I have strange problem with reading BSTR value from a VARIANT struct. I use following Javascript code to send data to C++ code: In an Invoke funct ...
I am working on a project for serial communications between Excel and an Arduino. The following is what I have in VBA for the reading of data from the ...
I've written a c++ function in a DLL which exports a string to a VBA program: Now Str is something like a version number: let's say "4.10.122". If ...
I am trying to concatenate two bstr_t one is char '#' and the other is an int (which I convert it to bstr_t) and gonna return it as a bstr (e.g '#'+'1 ...
I am trying to send a BSTR string written in a C DLL to Excel. Problem: Excel VBA receives the BSTR from the C DLL. I can see the BSTR in the VBA Int ...