programming4us
programming4us
DESKTOP

Windows 7 Development : GETTING STARTED WITH THE RIBBON (part 2) - Obtaining RibbonLib

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
2/19/2015 12:56:34 AM

2. Obtaining RibbonLib

If you look at the PreviewRibbon example code, you'll find that it has a relatively large number of files containing complex code. Writing a COM wrapper for the Ribbon isn't for the faint of heart. With this in mind, you'll probably want to use a pre-written wrapper to make your Ribbon development easier.

After you download the ZIP file, extract it. You'll find .SLN files for both Visual Basic and C#. In addition, both Visual Basic and C# examples are included with the library. The solutions will require conversion for Visual Studio 2010. Simply follow the Visual Studio Conversion Wizard prompts as you normally would to perform the conversion. The conversion should proceed without error.

When you initially attempt to build the library and its examples, you'll be discouraged to see a number of errors (36 of them). The errors aren't due to any coding problem. The problem occurs when you use the latest version of the Windows 7 SDK. Use the following steps to correct the problem:

  1. Right-click an example project entry in Solution Explorer and choose Properties from the context menu. You'll see the Properties window for that project.

  2. Select the Build Events tab as shown in Figure 1. Notice that the Pre-Build Event Command Line field contains entries that compile the XML file containing the Ribbon code into a DLL. You must modify these entries to match the version of the Windows 7 SDK installed on your system .

    Figure 1. The Build Events tab contains the settings you need to change.
  3. Click Edit Pre-Build. You'll see the Pre-Build Event Command Line dialog box shown in Figure 2.

    Figure 2. This dialog box contains the pre - build events for the project.
  4. Change each of the directory entries in the dialog box to match the directory setup on your machine. Be especially careful of the version numbers. The example is configured to use version 7.0 of the Windows 7 SDK.

  5. Click OK.

  6. Choose Build => Build Solution to build the application.


Other  
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 11) - Monitoring performance from the command line
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 10) - Configuring performance counter alerts
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part ) - Viewing data collector reports
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 8) - Collecting performance counter data, Collecting performance trace data
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 7) - Performance logging - Creating and managing data collector sets
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 6) - Resolving disk I/O bottlenecks, Resolving network bottlenecks
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 5) - Resolving performance bottlenecks - Resolving memory bottlenecks
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 4) - Comprehensive performance monitoring - Choosing views and controlling the display
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 3) - Comprehensive performance monitoring - Selecting performance objects and counters to monitor
  •  Windows Server 2012 : Comprehensive Performance Analysis and Logging (part 2) - Establishing performance baselines - Tracking the overall reliability of the server
  •  
    Top 10
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
    - Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
    - Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    programming4us programming4us
    programming4us
     
     
    programming4us