Browse by Tags

All Tags » C++ (RSS)

Optimization Manuals Updated

Agner Fog have updated his amazing set of optimization manuals, do check them out! 1. Optimizing software in C++: An optimization guide for Windows, Linux and Mac platforms This is an optimization manual for advanced C++ programmers. Topics include: The...
Posted by cvega | with no comments
Filed under: ,

Loading PNG (and JPG) image from resource using GDI+

Last night while I was translating some of my old animation program from GDI32 to GDI+, I’ve hit a roadblock where GDI+ cannot load PNG (and JPEG) file stored as resource: // This code doesn't work Gdiplus::Bitmap* m_image = Gdiplus::Bitmap...
Posted by cvega | 2 comment(s)
Filed under: ,

WTL links

Definition taken from Wikipedia The Windows Template Library ( WTL ) is a free software, object-oriented C++ template library for Win32 development. WTL was created by Microsoft employee Nenad Stefanovic for internal use and later released as an unsupported...
Posted by cvega | with no comments
Filed under: ,

Filemapping and a hex dump utility

Last time, I blogged about "how to reference function parameters to and from a function" . This time I would like to demonstrate how to put something of that approach in action. I wrote two functions that will allow you to use file mapping in...
Posted by cvega | 3 comment(s)
Filed under: ,

Returning function result to parameter

Writing a function with a pass-by-reference parameter that will be used to receive the result of the function's execution is a good practice in functions that returns status-code while the actual output is placed in the out parameter(s): Here's...
Posted by cvega | 1 comment(s)
Filed under: ,