The ListView ActiveX Control Version 6.0

I am trying to add an item into the Microsoft ListView Control(version6) which is contained in file mscomctl.ocx.
Its fairly simple in visual basic but I am having trouble in C++ 6.0. Has anyone done this?  I am trying to add a CListItem using the Add method but the VARIANT arguements are giving me problems.  In addition, I can't seem to find the definition of the VARIANT structure.  Where is it??
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MFC: A COleVariant object encapsulates theVARIANT data type.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The VARIANT (tagVARIANT) structure definition is in "oaidl.h". But it looks just easier to use MFC's COleVariant.
wzhxxjAuthor Commented:
I have actually tried to use COleVariant but getting pretty well the same results - nothing in the ListView control or application errors. This should be straight forward - maybe thats why I'm so frustrated.  Do you know how to add an item into the listview control?
Try the following code line:

m_ListView.GetListItems().Add(COleVariant((long)1), COleVariant("key"), COleVariant("Text"), NULL, NULL);

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.