Posts
  • Make it Simple

    How to add Full Screen Mode in your MFC app (Visual Studio 2008 or later)?

    • 3 Comments
    Recently I need to add full screen mode for one of my MFC projects. Like what we did usually, my first impression is to hide the tool bar of main frame and expand the size of view. Thus, I need to calculate the system screen size (GetSystemMetrics() API...
  • Make it Simple

    Confusing Errors in Building Win32 application in VS 2008

    • 1 Comments
    Well, when you write your first win32 console application in Visual Studio 2008, you probably just want to click F5 and test if it runs or not. Unfortunately, probably you will get some trouble as I did. I collected three "confusing" errors here. ...
  • Make it Simple

    Registry Redirection for 32-bit applications on 64-bit OS

    • 2 Comments
    Well, this title looks complicated...actually the story is pretty simple by using an example. For example, you write an application APP_A and the installer of this application needs to leave fingerprint on system's registry keys, so that the other...
  • Make it Simple

    How Do You Detect if Running OS is Windows 7 or Later?

    • 0 Comments
    Recently I need to write some codes to disable one feature on Windows 7 for an application. For Windows 7, its major number is 6 and minor number is 1 (see this link http://msdn.microsoft.com/en-us/library/ms724832(VS.85).aspx ) and thus we can compare...
  • Make it Simple

    What are Upgrade, Product and Package Codes used for?

    • 4 Comments
    Recently I am working with Windows Installer and think ProductCode, UpgradeCode and PackageCode are very basic but very important concepts, so I make a conclusion here for references. Both ProductCode and UpgradeCode can be viewed from Property table...
  • Make it Simple

    Remote Debugging in Visual Studio 2008

    • 0 Comments
    Common scenario is that a developer wrote an application on his/her dev machine A (which has source code, etc), and wants to debug this application's source code when the application is running on the remote machine B. Visual Studio 2008 provides two...
  • Make it Simple

    Margin, Windows Frame and Glass Window

    • 0 Comments
    A couple of weeks ago I tried to implement a glass window in C# application. My first thought is to edit the properties of WinForm. For example, I modified the "BackColor" and "Opacity" of the Form and did see the form became transparent and its color...
  • Make it Simple

    My Favoriate Tools in Windows SDK

    • 0 Comments
    Besides using Code Analysis (was FxCop), Source Analysis (was StyleCop) and Unit Test Code Coverage tool in Visual Studio IDE, I like some tools shipped in Windows SDK. These tools are very cool. IL Disassembler (ildasm.exe) http://msdn.microsoft...
  • Make it Simple

    Visual Studio IDE - basic and useful shortcuts

    • 0 Comments
    CTRL + F -- search string/text ESC --- change focus [for example, after you found the string and wanted to read the definition. You need to press this escape key first to change focus. F12 - Go to definition SHIFT + F12 - Find all the references...
  • Make it Simple

    Understanding build environment setttings in Visual Studio IDE vs Command Prompt

    • 1 Comments
    As we know, both Visual Studio IDE and its Command Prompt provide build environments to build our C++ applications, but they have some differences. I concluded some features of them as following. (1)In the VS Command Prompt, if you use "/useenv" switch...
  • Make it Simple

    Strong Name and Authenticode Signature

    • 0 Comments
    Sometimes you will see a managed assembly have both strong name and authenticode signature and are confused about their differences. Simply speaking, they use different mechanisms to help users to judge if the assembly comes from a trustable source. Also...
  • Make it Simple

    A few common SQL scripts

    • 0 Comments
    A few command SQL script (1) Insert multiple records of Table_A to a new Table_B SELECT * INTO Table_B FROM Table_A (2) Insert multiple records of Table_A to an existing table Table_B INSERT INTO Table_B ( Col1 , Col2 , Col3 )...
  • Make it Simple

    Backward Compatiblitity

    • 0 Comments
    A few months ago I read two articles on MSDN about the compatibility One is http://msdn2.microsoft.com/en-us/library/58bc9k67(VS.71).aspx The other is http://msdn2.microsoft.com/en-us/library/58bc9k67(VS.80).aspx The first link said, “Backward compatibility...
  • Make it Simple

    Refactoring Switch or IF/ELSE statements

    • 1 Comments
    It is not unusual to see a lot of switch statements or multiple if else statements in OO codes. From the view of code maintainability, probably some of such codes need refactoring. Strategy pattern is a good replacement. For example, the old code...
  • Make it Simple

    Setup Errors on Visual Studio 2008

    • 1 Comments
    Recently I uninstalled my VS 2008 and tried to install VSTS 2008. Unfortunately I was blocked by a couple of setup errors. Thus, I found a couple of good links/tools. Generally speaking, if we want to uninstall VS 2008 and reinstall a new VS 2008,...
  • Make it Simple

    AppSearch & LaunchConditions

    • 1 Comments
    Recently I read the book of "The Definitive Guide to Windows Installer" to understand how Windows Installer works. Seemly it is quite easy to create a launch condition based on a registry search in Orca. We just need to edit three tables: RegLocator...
Page 1 of 1 (16 items)