Notes for Microsoft .NET Framework
When using Microsoft .NET Framework (hereafter, ".NET environment") as the development environment, definitions such as structures and constants are different.
For details, refer to the API reference below.
API Reference
The supported version of the .NET environment is 4.0 or later.
Structure Definitions
In the .NET environment, structures are defined as value structs. Member variable types are changed to C++/CLI format for each structure, while member names and structure definitions themselves remain unchanged.
However, some structures are handled exceptionally.
(1) In the StMPXCANVersion structure (API version information), the member variable APIVersion is defined as a string as shown below.
(2) In the StMPXCANSlot structure (frame information), the member variable Increment is defined as a 64-byte Byte array (specified by bytes), not an 8-byte Byte array (specified by bits).
Usage in Visual Studio
When using this SDK in C# or VB.NET, add the following wrapper DLL file as a reference in your Visual Studio project.
| .NET Environment | Wrapper DLL File |
|---|---|
| Free Edition (32-bit) | MPXCANFDCtrldotNET40Free.dll |
| Free Edition (64-bit) | MPXCANFDCtrldotNET40Free_x64.dll |
| Paid Edition (32-bit) | MPXCANFDCtrldotNET40.dll |
| Paid Edition (64-bit) | MPXCANFDCtrldotNET40_x64.dll |
Configuration Example: Free Edition (32-bit)
Right-click [References] in the project -> [Add Reference] -> Add MPXCANFDCtrldotNET40Free.dll in Reference Manager.
If the DLL information file (the same filename as the wrapper DLL with extension changed to xml) is placed in the same folder as the wrapper DLL file, API details are shown in code completion.