C
Claus77
Hi there,
I've got a little problem with the following:
I'm just writing a com-application in C++ with VS-6, which should also
be
used with VB-Script, so I have to use variables of type VARIANT in my
functions in order to get no problems with VB-Script.
I try to transform them into C++-Variables somehow like this:
function a(VARIANT var)
bstr ch = var.bstr;
But C++ only puts the first character of the string into my variable
ch... Why?
What have I done wrong?
Thanks for your help,
Claus
I've got a little problem with the following:
I'm just writing a com-application in C++ with VS-6, which should also
be
used with VB-Script, so I have to use variables of type VARIANT in my
functions in order to get no problems with VB-Script.
I try to transform them into C++-Variables somehow like this:
function a(VARIANT var)
bstr ch = var.bstr;
But C++ only puts the first character of the string into my variable
ch... Why?
What have I done wrong?
Thanks for your help,
Claus