|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing Variable List Arguments
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.asp?url=/library/en-us/vclib/html/_crt_va_arg.2c_.va_end.2c_.va_start.asp |
|
#2
|
||||
|
||||
|
as far as I know, use void* in C++ to pass and get variable list argument.
|
|
#3
|
|||
|
|||
|
Quote:
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. |
|
#4
|
||||
|
||||
|
the answer is probably here:
http://msdn.microsoft.com/library/d...oprocedures.asp under "Using an Indefinite Number of Arguments". Last edited by Shadow Wizard : March 1st, 2006 at 03:35 PM. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Passing Variable List Arguments |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|