Skip to main content

Notes for Microsoft .NET Framework

When you use the Microsoft .NET Framework (hereafter, the ".NET environment") as your development platform, several structure and constant definitions differ from the native C/C++ interface.
Refer to the following API reference for the .NET-specific definitions.

API Reference

The .NET environment is supported on version 4.0 and later.

Structure Definitions

In the .NET environment, structures are implemented as value struct types. Member variables are converted to their C++/CLI equivalents, but the member names and overall structure definitions remain unchanged.
Some structures have additional handling as noted below.

  1. In the StMPXCANVersion structure (API version information), the APIVersion member is defined as a string, as shown below.
StMPXCANVersion
  1. In the StMPXCANSlot structure (frame information), the Increment member is defined as a 64-byte Byte array (byte addressing) instead of an 8-byte Byte array (bit addressing).
StMPXCANSlot

Using Visual Studio

When you use this SDK from C# or VB.NET, add a reference to the wrapper DLL listed below from your Visual Studio project.

.NET environmentWrapper DLL
Free edition (32-bit)MPXCANFDCtrldotNET40Free.dll
Free edition (64-bit)MPXCANFDCtrldotNET40Free_x64.dll
Licensed edition (32-bit)MPXCANFDCtrldotNET40.dll
Licensed edition (64-bit)MPXCANFDCtrldotNET40_x64.dll

Example Configuration (Free Edition 32-bit)

Right-click References in your project > Add Reference > add MPXCANFDCtrldotNET40Free.dll in Reference Manager.

If you place the DLL information file (the file with the same name as the wrapper DLL but with the .xml extension) in the same folder as the wrapper DLL, API details appear in IntelliSense code completion.