Handmade Hero » Forums » Code » Day 21's Statement About MSVCRT is Correct...
cmuratori
Casey Muratori
818 posts / 1 project

Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.

#636 Day 21's Statement About MSVCRT is Correct...
4 years, 6 months ago

... as you can verify by this:

http://msdn.microsoft.com/en-us/library/ms235460.aspx

So, like I said, if you design the EXE and the DLL to use the same MSVCRT DLL, then they will use the same heap and you can call new/delete with impunity.

If you don't, well, you are sad panda.

- Casey
Kladdehelvete
Livet Ersomen Strøm
164 posts
#637 Day 21's Statement About MSVCRT is Correct...
4 years, 6 months ago Edited by Livet Ersomen Strøm on Dec. 16, 2014, 7:24 a.m.

It's not on youtube yet, no spoilers please!

EDIT: Anyway, hahhahah!

sFence
theinternetftw
38 posts
#641 Day 21's Statement About MSVCRT is Correct...
4 years, 6 months ago

yeah, sorry for the "non-question" : D

It was one of those things where the second I saw the msdn docs (and this post from Raymond Chen), the whole idea instantly became completely obvious.
BertP
Bert Proesmans
9 posts
#650 Day 21's Statement About MSVCRT is Correct...
4 years, 6 months ago

To me that explanation was shocking.
During my C course nobody talked about the C Runtime Library.
As a consequence i always thought that new, malloc and variants were exactly the same as virtualalloc.
I understand now that i rely heavily on the CRT, understand what it is and what it does for me.

Thank you for that clarification!
Bert

The only way that Bob can screw up is if Bob is just incompetent.
- Casey Muratori, Day 014