Jim Bassett
June 3rd, 1999, 03:36 PM
Programming Problems:
I am having a problem with some code that works fine in Visual Studio 5.0 but throws an ASSERT fail in Visual Studio 6.0. The code is as follows:
Timeslice is a CString = "58988", therefore it has a length of five. An assert fail is thrown on the third line below which should just return an empty string, just like the fourth and fifth line. That is it does in 5.0 without any problems, but an assert fail is being thrown in Visual Studio 6.0.
Day = Timeslice.Left(3);
Hour = Timeslice.Mid(4,2);
Minute = Timeslice.Mid(7,2);
Second = Timeslice.Mid(10,2);
MilliSecond = Timeslice.Mid(13,4);
Has anyone seen other occurrence like this?
Could anyone test this out and report to me for a sanity check on my part.
Thanks for you help,
Pam Cable
pcable@csc.com
I am having a problem with some code that works fine in Visual Studio 5.0 but throws an ASSERT fail in Visual Studio 6.0. The code is as follows:
Timeslice is a CString = "58988", therefore it has a length of five. An assert fail is thrown on the third line below which should just return an empty string, just like the fourth and fifth line. That is it does in 5.0 without any problems, but an assert fail is being thrown in Visual Studio 6.0.
Day = Timeslice.Left(3);
Hour = Timeslice.Mid(4,2);
Minute = Timeslice.Mid(7,2);
Second = Timeslice.Mid(10,2);
MilliSecond = Timeslice.Mid(13,4);
Has anyone seen other occurrence like this?
Could anyone test this out and report to me for a sanity check on my part.
Thanks for you help,
Pam Cable
pcable@csc.com