BSTR arguments
-
Hi all, I am trying to pass BSTR arguments to a component's function from a client !I am using L prefix for the arguments !The problem is I am not getting any argument value in the function at the component !What may be the problem ! How can i successfully pass the BSTR arguments to the Interface function ! Thanx in advance for the help ! Y.Yamini Devi
-
Hi all, I am trying to pass BSTR arguments to a component's function from a client !I am using L prefix for the arguments !The problem is I am not getting any argument value in the function at the component !What may be the problem ! How can i successfully pass the BSTR arguments to the Interface function ! Thanx in advance for the help ! Y.Yamini Devi
Using L before a string makes it Unicode, not a BSTR. Read up on SysAllocString() and related APIs, and the _bstr_t CComBSTR wrapper classes. --Mike-- http://home.inreach.com/mdunn/ The Signature, back by popular demand: Buffy. Pajamas.
-
Hi all, I am trying to pass BSTR arguments to a component's function from a client !I am using L prefix for the arguments !The problem is I am not getting any argument value in the function at the component !What may be the problem ! How can i successfully pass the BSTR arguments to the Interface function ! Thanx in advance for the help ! Y.Yamini Devi
-
Hi all, I am trying to pass BSTR arguments to a component's function from a client !I am using L prefix for the arguments !The problem is I am not getting any argument value in the function at the component !What may be the problem ! How can i successfully pass the BSTR arguments to the Interface function ! Thanx in advance for the help ! Y.Yamini Devi
Hi Yamini :rose: The component u r using in VC++, i suppose have u tried L"xyz" in this fashion.if not then try it,possibly u will get the answer.Or try in this way:- CString str; str="ABC"; str.SysAllocString(); Then pass this instead of BSTR argument. This may solve the problem. Bye