title: calling a function without knowing the number of parameters in advance
body: <p>Suppose I have a dll with 2 functions.name of dll="dll1"
  f1(int a, int b, int c);</p>
  
  <p>f2(int a);</p>
  
  <p>My program would take the function name ,the dll name and a "list" of parameters as input.
  how would i call the appropriate function with its appropriate parameters.
  i.e,
  if input is 
  dll1
  f1
  list(5,8,9)</p>
  
  <p>this would require me to call f1 with 3 parameters
  if input was
  dll1
  f2
  list(8)
  it would require me to call f2 with one parameter
  how would i call the function without knowing the number of parameters in advance.</p>
  
  <p>further clarification:
  how do I write code that will call <em>any</em>
  function with all its arguments by building the argument list dynamically
  using some other source of information</p>