VB-script multiple return or reference type?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Thomas Sedlaczek (ThomasSedlaczek_at_discussions.microsoft.com)
Date: 12/01/04


Date: Wed, 1 Dec 2004 04:41:12 -0800

Hello all,

I want to bring VB scripting support to my MFC aplication. Therfore I need
to provide COM interface to my C++ functions. Now the problem seams that VB
script does not provide reference types or pointers. But how can I have a
function in VB-script that modifies more than one variable and retuns it to
the calling function?

Like C++ function:

void MyFunction(int iValue, int &iWillModifyA, long & lWillModifyB);

How can I express this in VB-script?

Best Regards
Thomas



Relevant Pages

  • VB-script multiple return or reference type?
    ... I want to bring VB scripting support to my MFC aplication. ... to provide COM interface to my C++ functions. ... Now the problem seams that VB ... How can I express this in VB-script? ...
    (microsoft.public.scripting.vbscript)
  • RE: VB-script multiple return or reference type?
    ... "Thomas Sedlaczek" wrote: ... > I want to bring VB scripting support to my MFC aplication. ... > the calling function? ... > How can I express this in VB-script? ...
    (microsoft.public.vb.syntax)