Tag: Visual C++

  • HTML files generation using XML and XSLT with Microsoft XML DOM API

    This short tutorial shows how easy it’s to generate reports in HTML pages using Microsoft XML DOM API together XML and XSLT. XML (Extensible Markup Language) became a universal standard of encoding data in a format that is both human-readable and machine-readable. It’s widely used in business applications and even Microsoft Office uses it into […]

  • SubclassWindow() method issues in projects base on MFC Feature Pack

    The Problem Trying to paint a background image into client area of a MDI application build in VC++ 6.0 to VC++ 2005 IDE it’s not a difficult task. In case you need, you can find easily good references. For instance, there are two references from Microsoft (KB129471 and KB103786) and one I prefer: a FAQ […]

  • Adventures with _chkstk

    Called by the compiler when you have more than one page of local variables in your function. _chkstk Routine is a helper routine for the C compiler. For x86 compilers, _chkstk Routine is called when the local variables exceed 4K bytes; for x64 compilers it is 8K. That’s all that you get from _chkstk()’s msdn web page. Nothing more…

  • Flexible changes for product version properties – Visual C++ binaries

    Manually editing of binaries version in the resource editor of Visual Studio IDE is not a viable solution. If we have dozens of projects in our solution, then for each kit building we should need manual resources file edit. Otherwise, we can use a special tool that does this thing for us. Unfortunately this approach is not the most flexible and could fail. For our flexible binaries properties changes and in order to avoid manual edit for each rebuild we can create and include a header file (version.h) that contains some constants of product version and file version of our project (.rc files). We have to include only these constants into this file (version.h): #define PRODUCT_VERSION 4.3.2.198 #define PRODUCT_VERSION_STR “4.3.2.198” Then, for each .rc file wherever we have FileVersion and ProductVersion we have to use this constants. When we will build a new kit, we have to change only these constants and then to start the kit building process. Everything is fine until we add new controls in our projects resource files. Then, because of Visual Studio IDE automation we can get an unlikely surprise: the FileVersion and the ProductVersion properties could be reset to 1.0.0.0. In order to avoid this issue and edit the version only in a single place I propose the following workaround.