VS2005 and VS2008 use different STL implementations. When the VS2005 code returns a vector, the object has a memory layout different from what VS2008 expects. This should be the cause of the erroneous values โโthat you see in the returned date.
As a rule of thumb, you should always compile all the modules of a C ++ project with the same compiler, and all / # settings define equal ones.
One specific #define that causes this behavior is SECURE_SCL #define VS2008. Two modules compiled with different settings will create exactly your problems, because #defining SECURE_SCL introduces more member variables into different classes of the C ++ library.
Timbo source share