 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Claus77 Guest
|
Posted: Mon Oct 23, 2006 9:10 am Post subject: VARIANT type |
|
|
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 |
|
| Back to top |
|
 |
Jim Langston Guest
|
Posted: Mon Oct 23, 2006 9:10 am Post subject: Re: VARIANT type |
|
|
"Claus77" <cmassion (AT) web (DOT) de> wrote in message
news:1161592203.696547.28250 (AT) h48g2000cwc (DOT) googlegroups.com...
| Quote: | 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
|
How is VARIANT defined?
How is bstr defined? |
|
| Back to top |
|
 |
Claus77 Guest
|
Posted: Tue Oct 24, 2006 9:11 am Post subject: Re: VARIANT type |
|
|
ah, i've got it now on my own... thanks for your help,
if someone is interested in the solution, i can post it here...
greets,
claus |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|