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::FromResource(hInst, L"IDB_IMAGE1"); I’m...
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 add-on to Visual Studio and the Win32 Framework...
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 less C/C++ codes. In order for you to understand...
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 an example: int getvalue( int valueKind, char**...