Hello, Mattias!
You wrote on Fri, 05 Mar 2004 20:35:40 +0100:
>> I haven't found any example of using ArgIterator and
>> RuntimeArgumentHandle in MSDN. Are they analogous to elipsis
>> (...) in C++?
MS> Here's an example
MS> static void Varargs(__arglist)
MS> Varargs( __arglist( 123, 456.78, "abc" ) );
And what about RuntimeArgumentHandle?
Another question. If I have some exported function in DLL defined like this
_declspec(dllexport) void DummyFn(char *sz1, char sz2, ...)
{
va_list marker;
vs_start(marker, sz2);
<do_some_stuff>;
va_end(marker);
}
how can I call it from C#? I've tried __arglist and params. It doesn't work. It seems PInvoke doesn't support such calls. And IJW too.
Regards,
Vladimir.
Winamp 5.0 (playing): Stratovarius - Twilight Time