Empty time stamp
Posted: Wed Apr 09, 2008 5:52 pm
Sorry if this question has already been asked. I searched for it. When I use frame->lpVtbl->get_TimeStamp(), the returned value appears to always be 0x80000000. The rest of the frame objects member functions seem to work fine. ->get_Count() returns the correct object count, ->get_Id() seems to return the correct frame Id. Also ->GetObjectData() returns a buffer of data I can read just fine. I have a code clip below.
It really just seems to be doing something funny. Also if I use "%f" in the sprintf I get -2747583648.000000. So I'm pretty sure it is returning something other than what I'm expecting from it. Is there anything else I need to do before calling ->getTimeStamp() ?
Code: Select all
frame->lpVtbl->get_TimeStamp( frame, &variant );
timeStamp = variant.dblVal;
sprintf(stringBuffer, "%x", (unsigned long long int)timeStamp);
SetWindowText(targetEdit, stringBuffer);