I have pretty much figured out how to pass variables to and from VB and C++ programs. Now I need to do the same for Variable List Arguments (where you have those elipses... in the argument list.
This seems to be a whole lot trickier and takes things to another level of complexity.
Does anyone have any ideas?
Variable List Arguments are described here:
http://msdn.microsoft.com/library/default....c_.va_start.asp
In C you can declare a function like this
int average( int first, ... )
Where the ellipses denote a variable argument list.
If I have a function like that in a c++ DLL and I want to link a Visual Basic GUI to it, how would that function be declared in the Visual Basic program?
The Visual Basic 6 text I have talks about something called Optional Variant but it looks like it will only apply for one variable and not a list of unknown variables.
This post has been edited by Athono: Mar 2 2006, 01:07 AM
Variable List Arguments
Mar 1 2006, 09:33 PM, updated 20y ago
Quote
0.0146sec
1.59
5 queries
GZIP Disabled