Click here to Skip to main content
15,914,488 members
Home / Discussions / COM
   

COM

 
GeneralRe: C++ server VB Client Question Pin
vikca20-Mar-03 5:30
vikca20-Mar-03 5:30 
GeneralRe: C++ server VB Client Question Pin
Vi220-Mar-03 20:38
Vi220-Mar-03 20:38 
GeneralRe: C++ server VB Client Question Pin
Chris Meech20-Mar-03 5:02
Chris Meech20-Mar-03 5:02 
GeneralRe: C++ server VB Client Question Pin
Vi220-Mar-03 20:45
Vi220-Mar-03 20:45 
GeneralSysAllocString question Pin
LukeV18-Mar-03 13:09
LukeV18-Mar-03 13:09 
GeneralRe: SysAllocString question Pin
Michael Dunn18-Mar-03 13:21
sitebuilderMichael Dunn18-Mar-03 13:21 
GeneralRe: SysAllocString question Pin
LukeV18-Mar-03 13:55
LukeV18-Mar-03 13:55 
GeneralRe: SysAllocString question Pin
Jörgen Sigvardsson20-Mar-03 10:10
Jörgen Sigvardsson20-Mar-03 10:10 
LukeV wrote:
would be ok then?

Nope.

SysAllocString takes a wide string and allocates a new string in BSTR format. You have to manually free the bstr using SysFreeString.

You can let a CComBSTR object assume ownership of a bstr string. See CComBSTR::Attach for more information. When the CComBSTR assumes ownership of the bstr string, it means that it will free it when the CComBSTR object itself is deallocated (done in CComBSTR::~CComBSTR).

--
Shine, enlighten me - shine
Shine, awaken me - shine
Shine for all your suffering - shine

QuestionOLE2T or COLE2T? Pin
LukeV18-Mar-03 12:36
LukeV18-Mar-03 12:36 
AnswerRe: OLE2T or COLE2T? Pin
Anders Molin18-Mar-03 12:52
professionalAnders Molin18-Mar-03 12:52 
GeneralRe: OLE2T or COLE2T? Pin
LukeV18-Mar-03 12:56
LukeV18-Mar-03 12:56 
GeneralRe: OLE2T or COLE2T? Pin
Anders Molin18-Mar-03 13:00
professionalAnders Molin18-Mar-03 13:00 
GeneralRe: OLE2T or COLE2T? Pin
LukeV18-Mar-03 13:02
LukeV18-Mar-03 13:02 
GeneralRe: OLE2T or COLE2T? Pin
Jörgen Sigvardsson20-Mar-03 10:23
Jörgen Sigvardsson20-Mar-03 10:23 
GeneralRe: OLE2T or COLE2T? Pin
LukeV23-Mar-03 6:23
LukeV23-Mar-03 6:23 
GeneralRe: OLE2T or COLE2T? Pin
Anders Molin23-Mar-03 11:37
professionalAnders Molin23-Mar-03 11:37 
QuestionT2OLE or AllocSysString()? Pin
LukeV18-Mar-03 12:34
LukeV18-Mar-03 12:34 
AnswerRe: T2OLE or AllocSysString()? Pin
Anders Molin18-Mar-03 12:48
professionalAnders Molin18-Mar-03 12:48 
GeneralRe: T2OLE or AllocSysString()? Pin
LukeV18-Mar-03 13:05
LukeV18-Mar-03 13:05 
GeneralRe: T2OLE or AllocSysString()? Pin
Anders Molin18-Mar-03 13:21
professionalAnders Molin18-Mar-03 13:21 
AnswerRe: T2OLE or AllocSysString()? Pin
Michael Dunn18-Mar-03 13:23
sitebuilderMichael Dunn18-Mar-03 13:23 
GeneralRe: T2OLE or AllocSysString()? Pin
LukeV18-Mar-03 13:52
LukeV18-Mar-03 13:52 
GeneralCLSIDFromProgID was failed. Please help.. Pin
Vorrarit Luengwattanakij18-Mar-03 7:32
Vorrarit Luengwattanakij18-Mar-03 7:32 
GeneralRe: I want to write an Add-in for VS, help please Pin
qcth18-Mar-03 3:47
qcth18-Mar-03 3:47 
GeneralJava + COM Pin
-=jarl=-17-Mar-03 5:39
-=jarl=-17-Mar-03 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.