P
Peter
--------------------------------------------------------------------------------
Hi,
I was wondering if we can create a va_list by adding objects in the
va_list instead of passing in the parameter preceding first optional
argument? In another words, I want to create a va_list in a similar
manner as creating an array.
The reason is I want to use FormatMessage() in my program where it
takes in a va_list as an argument, but the objects that I would like
to pass in with the va_list is not in the form of a parameter
argument.
I tried doing the following but obviously it won't work, but I have no
idea:
va_list temp;
va_arg(temp, long) = value1;
va_arg(temp, long) = value2;
ANy help would be greatly appreciated,
Thanks,
Peter
Hi,
I was wondering if we can create a va_list by adding objects in the
va_list instead of passing in the parameter preceding first optional
argument? In another words, I want to create a va_list in a similar
manner as creating an array.
The reason is I want to use FormatMessage() in my program where it
takes in a va_list as an argument, but the objects that I would like
to pass in with the va_list is not in the form of a parameter
argument.
I tried doing the following but obviously it won't work, but I have no
idea:
va_list temp;
va_arg(temp, long) = value1;
va_arg(temp, long) = value2;
ANy help would be greatly appreciated,
Thanks,
Peter