Updating Older API Programs
Release 3 and later of the N7621B software utilizes both the Microsoft .Net 4.0 and .Net 3.5 dll components. Release 3 and later also utilizes certain dll components based on the Windows platform and installed N7621B version. For these reasons, older API programs need to be modified.
|
|
When the N7621B software is installed on 64-bit operating systems, the Multitone API may not correctly handle function calls from other 32-bit applications.
|
If you want to use an API program that was written for N7621 versions 2.x and earlier, you will need to make the following updates:
- Update the project's app.config configuration file
- Make sure your project/solution has an app.config file. If app.config exists, proceed to step 1.b. If not, add a configuration file to the project:
- In Visual Studio's Solution Explorer, right-click the project and select
- In the Add New Item dialog, select from the list and click .
- Add the following line to the app.config configuration file:
<startup useLegacyV2RuntimeActivationPolicy="true">
You can find an example app.config file at . It contains the following:
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
<requiredRuntime version="v4.0.20506" />
</startup>
</configuration>
- Change the project's Platform target and Target framework settings
- In Visual Studio's Solution Explorer, right-click the project and select
- In the Build tab, set to
- In the Application tab, set to