End Google Ads 201810 - BS.net 01 -->
Hello,
I have a created a map named mapList
std::map mapList;
and loading to key and value.
when i try to create a view of the file in the process address space (MapViewOfFile) which returns a pointer to the file view.
error C2440: '=' : cannot convert from 'std::map *' to 'LPCTSTR' msg is thrown
I think there is an error in typecasting from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' as i'm implementing in below manner.
pBuf = (std::map *)MapViewOfFile(hMapSharedMemory, FILE_MAP_ALL_ACCESS, 0, 0, 0);
Can anyone suggest me a solution.
Thanks in advance,
Regards,
Mayur M
modified on Tuesday, May 5, 2009 4:53 AM
مواقع النشر (المفضلة)