Click here to Skip to main content
16,017,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCompile time directive for checking compiler options? Pin
dstaikos23-Nov-07 3:55
dstaikos23-Nov-07 3:55 
JokeRe: Compile time directive for checking compiler options? Pin
Florin Crişan25-Nov-07 21:11
Florin Crişan25-Nov-07 21:11 
QuestionSysAllocString Pin
George_George23-Nov-07 3:04
George_George23-Nov-07 3:04 
GeneralRe: SysAllocString Pin
Matthew Faithfull23-Nov-07 3:41
Matthew Faithfull23-Nov-07 3:41 
GeneralRe: SysAllocString Pin
George_George23-Nov-07 5:27
George_George23-Nov-07 5:27 
GeneralRe: SysAllocString Pin
Matthew Faithfull23-Nov-07 5:38
Matthew Faithfull23-Nov-07 5:38 
GeneralRe: SysAllocString Pin
George_George23-Nov-07 20:07
George_George23-Nov-07 20:07 
GeneralRe: SysAllocString Pin
Matthew Faithfull24-Nov-07 6:44
Matthew Faithfull24-Nov-07 6:44 
The COM runtime is a bunch of DLLs e.g. oleaut32.dll which implement COM itself. These get loaded into your EXE process but they contain code capable of crossing process boundaries and the Kernel/User mode boundary so it is theoretically possible for COM runtime data to exist across processes( The Running Object List is a mysterious beast of this kind). BSTRs are certainly allocated per-process and have to be auto-marshalled to transfer them but because of the peculiar nature of the COM allocator it may or may not be using the processes normal heap. If it is then it isn't using it through the normal (slow) heap manager. I don't know whether COM simply uses it's own manager on a preallocated chunk of the default heap, uses a second help, or uses Kernel memory outside the process but assigned to it. It is capable of all 3 but only MS would know for sure where BSTRs really live and why they turn out slightly faster than ordinary strings.

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: SysAllocString Pin
George_George25-Nov-07 3:42
George_George25-Nov-07 3:42 
AnswerRe: SysAllocString Pin
Matthew Faithfull25-Nov-07 12:24
Matthew Faithfull25-Nov-07 12:24 
AnswerRe: SysAllocString Pin
Florin Crişan23-Nov-07 4:29
Florin Crişan23-Nov-07 4:29 
GeneralRe: SysAllocString Pin
George_George23-Nov-07 5:26
George_George23-Nov-07 5:26 
GeneralRe: SysAllocString Pin
Iain Clarke, Warrior Programmer23-Nov-07 5:49
Iain Clarke, Warrior Programmer23-Nov-07 5:49 
GeneralRe: SysAllocString Pin
George_George23-Nov-07 20:10
George_George23-Nov-07 20:10 
GeneralRe: SysAllocString Pin
Iain Clarke, Warrior Programmer24-Nov-07 11:34
Iain Clarke, Warrior Programmer24-Nov-07 11:34 
GeneralRe: SysAllocString Pin
George_George25-Nov-07 3:39
George_George25-Nov-07 3:39 
GeneralRe: SysAllocString Pin
Iain Clarke, Warrior Programmer25-Nov-07 14:21
Iain Clarke, Warrior Programmer25-Nov-07 14:21 
AnswerRe: SysAllocString Pin
Gary R. Wheeler24-Nov-07 2:29
Gary R. Wheeler24-Nov-07 2:29 
GeneralRe: SysAllocString Pin
George_George24-Nov-07 3:50
George_George24-Nov-07 3:50 
QuestionDoModal() question? Pin
Gofur Halmurat23-Nov-07 2:52
Gofur Halmurat23-Nov-07 2:52 
QuestionRe: DoModal() question? Pin
Maximilien23-Nov-07 3:11
Maximilien23-Nov-07 3:11 
AnswerRe: DoModal() question? Pin
Gofur Halmurat23-Nov-07 3:38
Gofur Halmurat23-Nov-07 3:38 
GeneralRe: DoModal() question? Pin
toxcct23-Nov-07 3:48
toxcct23-Nov-07 3:48 
GeneralRe: DoModal() question? Pin
Gofur Halmurat23-Nov-07 3:50
Gofur Halmurat23-Nov-07 3:50 
GeneralRe: DoModal() question? Pin
toxcct23-Nov-07 3:53
toxcct23-Nov-07 3:53 

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.