I use Variants all the time (mainly COleVariant), however today I simply wanted to construct a Variant using a CString. I hit my head against the wall many times, trying crappy things like

* T2OLE (with SysAlloc whatever)
* _variant_t.SetString
* var.pbVal = "such and such"
* COleVariant(str), var=olevar.Detach()

and I couldn't get it to work at all. I feel like an idiot, but could someone purlease put me out of my misery.

CString into Variant.

Consider Phlebas