Hopefully this is nice and easy. Got a msvc++ application with an icon resource. When you run the app it appears, when you create a shortcut to it on the desktop it is the correct icon. However, when you view it in windows explorer it has the mfc icon shown. If you then click properties it gives you the properties window with the correct icon?!
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism
The trick is to virtually inherit from a base class…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects.
A brief on problem:
Lets take example problem for simplicity:
- I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.