Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson4-May-09 23:10
professionalStuart Dootson4-May-09 23:10 
AnswerRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson4-May-09 23:09
professionalStuart Dootson4-May-09 23:09 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
mmayur6-May-09 0:46
mmayur6-May-09 0:46 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
mmayur6-May-09 0:46
mmayur6-May-09 0:46 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson6-May-09 0:52
professionalStuart Dootson6-May-09 0:52 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
mmayur6-May-09 1:13
mmayur6-May-09 1:13 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
Stuart Dootson6-May-09 1:30
professionalStuart Dootson6-May-09 1:30 
GeneralRe: Error: Cannot convert from 'std::map<_Kty,_Ty> *' to 'LPCTSTR' Pin
mmayur8-May-09 0:15
mmayur8-May-09 0:15 
Hi,

Sorry for the improper title, which has created a lot of confusions.

I have a map of type

Std::map<string, FileInfo*> ActualMap;
Std::map<string, FileInfo*>::iterator mapIterator
Typedef std::pair <string, FileInfo*>;

The FileInfo is a class which contains the properties of the files.

I am inserting all the values properly into the ActualMap and then it has to be shared with another process in the same machine using the Named SharedMemory. So, I have implemented in following way

Std::map<string, fileinfo*=""> *pBuffer;
pBuffer = (std::map<string, fileinfo*=""> *)MapViewOfFile(hMapSharedMemory, FILE_MAP_ALL_ACCESS, 0, 0, 0);
once the above mapping of the view is done, I have inserted all the key-value from the ActualMap as

CopyMemory((PVOID) pBuf, &mapList, (mapList.size() * sizeof(std::map<string,FileInfo>)));

Now, in the client application i'm able to retireve only the size of the map but not the key-value pairs and their data.

So, please help in solving this problem.

Regards,
Mayur M
GeneralRe: Error: Cannot convert from 'std::map&lt;_Kty,_Ty&gt; *' to 'LPCTSTR' Pin
Stuart Dootson8-May-09 2:06
professionalStuart Dootson8-May-09 2:06 
QuestionDefault buttons changing for PropertySheet/PropertyPage Pin
aalexfree4-May-09 22:37
aalexfree4-May-09 22:37 
QuestionCasting Pin
CodingLover4-May-09 22:20
CodingLover4-May-09 22:20 
AnswerRe: Casting Pin
Rajesh R Subramanian4-May-09 22:33
professionalRajesh R Subramanian4-May-09 22:33 
AnswerRe: Casting Pin
CPallini4-May-09 22:37
mveCPallini4-May-09 22:37 
AnswerRe: Casting Pin
Iain Clarke, Warrior Programmer4-May-09 23:06
Iain Clarke, Warrior Programmer4-May-09 23:06 
NewsRe: Casting Pin
CodingLover4-May-09 23:09
CodingLover4-May-09 23:09 
GeneralRe: Casting Pin
Iain Clarke, Warrior Programmer4-May-09 23:20
Iain Clarke, Warrior Programmer4-May-09 23:20 
GeneralRe: Casting Pin
Cedric Moonen4-May-09 23:14
Cedric Moonen4-May-09 23:14 
AnswerRe: Casting Pin
Stuart Dootson4-May-09 23:20
professionalStuart Dootson4-May-09 23:20 
NewsRe: Casting Pin
CodingLover5-May-09 0:12
CodingLover5-May-09 0:12 
QuestionI need a suggestion Pin
kokilag4-May-09 22:13
kokilag4-May-09 22:13 
AnswerRe: I need a suggestion Pin
Rajesh R Subramanian4-May-09 22:29
professionalRajesh R Subramanian4-May-09 22:29 
GeneralRe: I need a suggestion Pin
kokilag6-May-09 6:47
kokilag6-May-09 6:47 
QuestionVisual C++ 2008 MFC Feature pack samples.. Pin
eight4-May-09 21:45
eight4-May-09 21:45 
AnswerRe: Visual C++ 2008 MFC Feature pack samples.. Pin
Rajesh R Subramanian4-May-09 21:48
professionalRajesh R Subramanian4-May-09 21:48 
GeneralRe: Visual C++ 2008 MFC Feature pack samples.. Pin
eight5-May-09 3:06
eight5-May-09 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.