Click or drag to resize

Required Visual Studio Configuration Changes

Before building an IVI-C driver project, several configuration settings must be manually changed. The Visual Studio project system does not expose this functionality in a way that allows Nimbus to automatically perform these configuration changes, so this topic explains each step the driver developer must perform.

To configure the appropriate solution platforms

  1. From Solution Explorer, right click on the solution and choose Configuration Manager. The Configuration Manager Dialog Box appears.

  2. From the Active solution platform combo box, choose <Edit...>. The Edit Solution Platforms dialog box appears.

  3. The following platforms should be present:

    • Any CPU

    • Mixed Platforms

    • Win32

    • x64

    • x86

  4. For most developers, only one or two solution platforms are needed. The recommended solution platforms to keep depend upon whether you are creating a linked IVI-C driver as part of the solution or simply creating an IVI-C driver without a linked IVI.NET driver.

    For solutions that have only an IVI-C driver, typically x86 and x64 will be needed. Other solution platforms can be safely deleted.

    For solutions that have an IVI.NET driver and a linked IVI-C driver, both Mixed Platforms and x64 will typically be needed. Other solution platforms can be safely deleted.

  5. Close the Edit Solution Platforms dialog.

  6. From the Configuration Manager dialog, choose the x86 (or the Mixed Platforms) platform from the Action solution platform combo box.

  7. Make sure that the Platform column setting and Build column setting for each project is set according to the table below. (Note the list of projects that appears depends upon the driver options chosen.)

    Project

    Platform

    Build

    <driverName>CDriverConsoleApplication

    Win32

    Checked

    <driverName>CDriver

    Win32

    Checked

    <driverName>CDriverHelp

    Any CPU

    Unchecked

    <driverName>CDriverSetup

    x86

    Unchecked

    <driverName>CDriverUnitTest

    Win32

    Checked

  8. Use the Active solution configuration combo box to repeat the above settings for both Debug and Release configurations.

  9. From the Configuration Manager dialog, choose the x64 platform from the Action solution platform combo box.

  10. Make sure that the Platform column setting and Build column setting for each project is set according to the table below. (Note the list of projects that appears depends upon the driver options chosen.)

    Project

    Platform

    Build

    <driverName>CDriverConsoleApplication

    x64

    Checked

    <driverName>CDriver

    x64

    Checked

    <driverName>CDriverHelp

    Any CPU

    Unchecked

    <driverName>CDriverSetup

    x64

    Unchecked

    <driverName>CDriverUnitTest

    x64

    Checked

  11. Use the Active solution configuration combo box to repeat the above settings for both Debug and Release configurations.

See Also

Download a complete CHM version of this documentation here.