How do I pass variable arguments from managed to unmanaged with a C++/CLI Wrapper?

后端 未结 2 1985
天涯浪人
天涯浪人 2021-01-16 10:55

To implement a params(variable arguments) functionality in the managed domain, we do the following in c++/cli such as:

funcManaged(int n, ...array         


        
2条回答
  •  长发绾君心
    2021-01-16 11:28

    The general recommendation is that it is not recommended: See this article

    I would suggest using a std::vector to store the arguments.

提交回复
热议问题