|
-
July 2nd, 2002, 10:41 AM
#1
how to convert CString to Variant???
ive found so many examples on how to convert a variant to a cstring but none on the reverse?
basically, i GetWindowText from a text box in the form of a CString and want to use that value as a REFERENCE_TIME which is of type LongLong.
this is what i have:
////////////////////////////////////////
CString s;
VARIANT v;
e_Start.GetWindowText(s);
//conversion code goes here
e_pVEdit->SetStartTime(v.llVal);
}
////////////////////////////////////////
e_Start is the text box of course, and e_pVEdit is a class object with the method SetStartTime which takes a REFERENCE_TIME argument which is essentially a LongLong value.
i just can't figure out how to turn s into v?????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|