locked
C# Invoke constructor from dll file RRS feed

  • Question

  • I want to invoke the constructor in dll bulit by C++, but I don't know how to invoke it in C#. 

    The Function declaration in C++ header file is:

    /**
    * Constructor.

    * Defaults:
    * - Enabled: true  (This flag is ignored for Devices)
    * - No End Systems defined
    * - Mac Group Address: "03:00:00:00"
    * - Previous Sequence Number Range: 2
             * - Test Mode: false
    * .

    * @param aNetworkSpeed The network speed.
    * @param aName    The name to associate with the Device.
    */
            Device(AitEthernet::NetworkSpeed aNetworkSpeed, const std::string& aName = "");
    /**
    * Copy Constructor.

    * @param aRhs    The object to copy.
    */
    Device(const Device& aRhs);

    The detail of the constructor in dll is :

    Ait664::Device::Device(class Ait664::Device const &)
    Ait664::Device::Device(enum AitEthernet::NetworkSpeed,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)

    Tuesday, January 13, 2015 8:46 AM