I have made a DLL with VC++ 2008 and when i use it in console application VC++ 6.0, there is an exception:
(msvcr90.dll): 0xc0000005: Access Violation
If you want to build a DLL with Visual C++ version X and use it in Visual C++ version Y, you have some options:
It is also important to point out that the code which allocates memory and the code which frees memory must use the same allocator.