Connecting Tech Pros Worldwide Help | Site Map

Convert CString to Variant

  #1  
Old January 4th, 2007, 10:05 PM
Gertjan Huiskes
Guest
 
Posts: n/a
Hello all,

I want to convert a CString to a Variant.

I'm using COleVariant to do this, and it works ok...
but by using COleVariant, the whole string is placed on the stack
twice!!!!!

Because my strings are very long (several megabytes) I have to reserve
a hugh stack.
I want to do it in a different way.

Can someone help me with this?

Grtz
Gertjan


  #2  
Old January 4th, 2007, 10:15 PM
Victor Bazarov
Guest
 
Posts: n/a

re: Convert CString to Variant


Gertjan Huiskes wrote:
Quote:
I want to convert a CString to a Variant.
[..]
Can someone help me with this?
Yes, somebody in the MFC or OLE newsgroup should be able to.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using string where a char* required Angus answers 11 August 2nd, 2007 01:05 PM
convert VARIANT to CSTRING michael mazanek answers 1 September 18th, 2006 06:35 PM
type VARIANT and array - conversion to CString romi answers 2 November 14th, 2005 12:31 PM
type VARIANT and array - conversion to CString romi answers 1 July 22nd, 2005 07:31 PM