Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding a LARGE_INTEGER to a ComboBox

Status
Not open for further replies.

shanlon

Technical User
Dec 4, 2000
24
IE
How do i display a variable of size LARGE_INTEGER in a listctrl.
What i'm doing at the moment is adding 32bit integers to the listctrl by using sprintf to store the int in a string which i then pass to the function CListCtrl::SetItemText.
This works fine but i cannot sprintf a LARGE_INTEGER to a string.. thus i can't display it (i don't know if there is another way)..
Would accessing the Low-part and the High-part seperately, and then converting each to strings and concatenating them work??
 
Please try the following:

CString sBigNumber;
LARGE_INTEGER nBigNumber;
nBigNumber.QuadPart = 12345678901234;
sBigNumber.Format( "%I64d", nBigNumber.QuadPart );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top