M
MuZZy
Hi,
Maybe it's a known issue but i couldn't find any answer so far...
Consider this c# function:
// ----------------------------------
public int SumUp(params int[] iArgs)
{
int i = 0;
foreach (int iArg in iArgs)
i += iArg;
return i;
}
// ---------------------------------
So this function accepts variable number of arguments.
Now, i try to call it from a c++ project with 7 (for example) arguments and i get an error saying
that SumUp() doesn't expect 7 arguments. Basicly it doesn't work with any number of arguments...
I specifically created that helper c# project as i wanted to use functions with variable-number of
arguments in c++ and c++ (managed) itself doesn't support that. I tried v_list but it's not working
with managed c++.
Any solutions/workarounds?
I would really apreciate any ideas!
Thank you in advance,
Andrey
Maybe it's a known issue but i couldn't find any answer so far...
Consider this c# function:
// ----------------------------------
public int SumUp(params int[] iArgs)
{
int i = 0;
foreach (int iArg in iArgs)
i += iArg;
return i;
}
// ---------------------------------
So this function accepts variable number of arguments.
Now, i try to call it from a c++ project with 7 (for example) arguments and i get an error saying
that SumUp() doesn't expect 7 arguments. Basicly it doesn't work with any number of arguments...
I specifically created that helper c# project as i wanted to use functions with variable-number of
arguments in c++ and c++ (managed) itself doesn't support that. I tried v_list but it's not working
with managed c++.
Any solutions/workarounds?
I would really apreciate any ideas!
Thank you in advance,
Andrey