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

COM

 
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 
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 
Ole2T is from good old ATL3 which is working with VC6.
It also needs the USES_CONVERSION macro.
It's stack-based (using _alloca()) and therefore it can not be used with large strings or in loops.

COLE2T is from ATL7, and only works with VC7.
Don't need the conversion macro
When using small data it allocates data on the stack for performance, but with larger data it allocates on the heap.
Is safe to use in loop, because it's basically a class, so allocated resources is free'ed when it goes out of scope.

Hope that helps a bit.

- Anders

Money talks, but all mine ever says is "Goodbye!"
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 
GeneralRe: Java + COM Pin
Jörgen Sigvardsson20-Mar-03 10:27
Jörgen Sigvardsson20-Mar-03 10:27 
GeneralInvalidCastException Pin
SQ_Lusi13-Mar-03 1:25
SQ_Lusi13-Mar-03 1:25 

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.