C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VARIANT type

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Claus77
Guest





PostPosted: Mon Oct 23, 2006 9:10 am    Post subject: VARIANT type Reply with 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
Back to top
Jim Langston
Guest





PostPosted: Mon Oct 23, 2006 9:10 am    Post subject: Re: VARIANT type Reply with quote



"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





PostPosted: Tue Oct 24, 2006 9:11 am    Post subject: Re: VARIANT type Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.