Skip to main content

All Questions

6 votes
2 answers
9k views

Safely handling memory allocation across DLL boundaries in Windows

I know that, in Windows, memory must be deallocated in the same module that allocated it. I have 2 DLLs built with different C++ compilers (VS 6 and VS 2015). In the VS 2015 module, I have an ...
user1832484's user avatar
3 votes
1 answer
221 views

MemoryWriter Helper class

I have created this memory writer helper to ease the write into memory process and I want your suggestions regarding it. I am very new to C++ but have 6 years knowledge of .NET languages like VB and C#...
Danial Eugen's user avatar
6 votes
1 answer
319 views

File validator configured using XML

I am making an application to check for any files that does not follow a specific pattern defined in a XML file. The application works well, but the source code is not the greatest, and memory ...
Linus's user avatar
  • 917
2 votes
1 answer
172 views

Would this code cause memoryleaks?

My question is really simple. Does this code cause memoryleaks? If so, where/how/why? ...
user avatar
0 votes
2 answers
8k views

Correct way of using HBRUSHes..?

If I create a brush like so HBRUSH hBrush = CreateSolidBrush(RGB(33, 33, 33)); and then later on, I want to change the color of the brush, how would I do this? I ...
user avatar